org.allcolor.yahp.cl.converter.oo
Class COOoConverterFactory

java.lang.Object
  extended by org.allcolor.yahp.cl.converter.oo.COOoConverterFactory

public class COOoConverterFactory
extends java.lang.Object

Simple factory for out-of-container use.

Version:
0.94

Field Summary
static java.lang.String CONNECTION_HOST
          default hostname : localhost
static int CONNECTION_PORT
          default port : 8100
private static COOoConverter documentConverter
          an OOo doc converter handle
private static java.lang.String hostName
          OOo hostname
private static int port
          OOo port
private static COOoConnection unoConnection
          connection to OOo
 
Constructor Summary
COOoConverterFactory()
           
 
Method Summary
static COOoConnection getConnection()
          return an UnoConnection
static COOoConverter getConverter()
          return a document converter
static java.lang.String getHostName()
          return the hostname of the host on which OOo is running
static int getPort()
          returns the port which OOo is running
static void setHostName(java.lang.String hostName)
          set the hostname of the host on which OOo is running
static void setPort(int port)
          set the port which OOo is running
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONNECTION_PORT

public static final int CONNECTION_PORT
default port : 8100

See Also:
Constant Field Values

CONNECTION_HOST

public static final java.lang.String CONNECTION_HOST
default hostname : localhost

See Also:
Constant Field Values

unoConnection

private static COOoConnection unoConnection
connection to OOo


documentConverter

private static COOoConverter documentConverter
an OOo doc converter handle


hostName

private static java.lang.String hostName
OOo hostname


port

private static int port
OOo port

Constructor Detail

COOoConverterFactory

public COOoConverterFactory()
Method Detail

setHostName

public static final void setHostName(java.lang.String hostName)
set the hostname of the host on which OOo is running

Parameters:
hostName - The hostName to set.

getHostName

public static final java.lang.String getHostName()
return the hostname of the host on which OOo is running

Returns:
Returns the hostName.

setPort

public static final void setPort(int port)
set the port which OOo is running

Parameters:
port - The port to set.

getPort

public static final int getPort()
returns the port which OOo is running

Returns:
Returns the port.

getConnection

public static COOoConnection getConnection()
                                    throws java.net.ConnectException
return an UnoConnection

Returns:
an UnoConnection
Throws:
java.net.ConnectException - if an error occurs

getConverter

public static COOoConverter getConverter()
                                  throws java.net.ConnectException
return a document converter

Returns:
a document converter
Throws:
java.net.ConnectException - if an error occurs