|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ulc.util.UlcObject | +--com.ibm.ulc.comm.Server
The framework for a server. It dynamically creates a TransportServer (depending on the protocol specified in a URL) that listens for incoming connections. A UlcConnection is then created for each accepted connection. The Server framework is independent of the request format and the transport kind.
UlcConnection
,
UlcTransportServer
,
Request
, Serialized FormField Summary | |
protected static boolean |
DEBUG
|
protected static ISocketFactory |
fgSocketFactory
|
protected java.lang.String |
fName
|
protected int |
fPort
|
Constructor Summary | |
Server()
Constructs a server. |
|
Server(java.lang.String name)
Constructs a server. |
Method Summary | |
static void |
addConnectionController(IConnectionController controller)
Method to register a connection controller object. |
void |
createConnection(UlcTransport transport)
Factory method for creating a connection from a given transport. |
java.lang.String |
getName()
|
static java.lang.String |
getServerUrlFileName()
|
static ISocketFactory |
getSocketFactory()
Retrieves the factory object for creating all sockets within ULC. |
java.lang.String |
getStartedString()
return the string to indicate that this Server has started. |
protected UlcTransportServer |
getTransportServer()
Returns the Transport server or null |
static void |
propagateConnectionCreated(IConnection connection)
Helper method for connection control. |
static void |
propagateConnectionEnded(IConnection connection,
UlcTransportException ex)
Helper method for connection control. |
static void |
propagateConnectionStarted(IConnection connection,
UlcTransportException ex)
Helper method for connection control. |
static void |
removeConnectionController(IConnectionController controller)
Method to deregister a connection controller object. |
void |
run()
Deprecated. |
protected static void |
setServerUrlFileName(java.lang.String name)
|
static void |
setSocketFactory(ISocketFactory factory)
Sets the factory object for creating all sockets within ULC. |
int |
start(java.lang.String urlString)
Starts the server by creating a new thread for accepting connections on the address specified by the passed in URL. |
Methods inherited from class com.ibm.ulc.util.UlcObject |
trouble,
trouble2,
trouble2Err,
troubleErr |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int fPort
protected java.lang.String fName
protected static ISocketFactory fgSocketFactory
protected static final boolean DEBUG
Constructor Detail |
public Server()
public Server(java.lang.String name)
Method Detail |
public static void addConnectionController(IConnectionController controller)
public void createConnection(UlcTransport transport)
transport
- com.ibm.ulc.comm.UlcTransportpublic java.lang.String getName()
public static java.lang.String getServerUrlFileName()
public static ISocketFactory getSocketFactory()
public java.lang.String getStartedString()
protected UlcTransportServer getTransportServer()
public static void propagateConnectionCreated(IConnection connection)
public static void propagateConnectionEnded(IConnection connection, UlcTransportException ex)
public static void propagateConnectionStarted(IConnection connection, UlcTransportException ex)
public static void removeConnectionController(IConnectionController controller)
public void run()
protected static void setServerUrlFileName(java.lang.String name)
public static void setSocketFactory(ISocketFactory factory)
Server.start
.
If the factory is not explicitely set ULC will use an instance of
com.ibm.ulc.comm.DefaultSocketFactory.public int start(java.lang.String urlString)
urlString
- java.lang.String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |