com.sun.xml.ws.transport.tcp.server.glassfish
Class WSTCPLifeCycleModule
java.lang.Object
com.sun.xml.ws.transport.tcp.server.WSTCPModule
com.sun.xml.ws.transport.tcp.server.glassfish.WSTCPLifeCycleModule
- All Implemented Interfaces:
- com.sun.appserv.server.LifecycleListener
public final class WSTCPLifeCycleModule
- extends WSTCPModule
- implements com.sun.appserv.server.LifecycleListener
GlassFish lifecycle module, which works as SOAP/TCP endpoints registry.
Method Summary |
void |
free(java.lang.String contextPath,
java.util.List<TCPAdapter> adapters)
|
int |
getPort()
Returns port, SOAP/TCP is listening on. |
void |
handleEvent(com.sun.appserv.server.LifecycleEvent lifecycleEvent)
|
void |
register(java.lang.String contextPath,
java.util.List<TCPAdapter> adapters)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSTCPLifeCycleModule
public WSTCPLifeCycleModule()
handleEvent
public void handleEvent(@NotNull
com.sun.appserv.server.LifecycleEvent lifecycleEvent)
throws com.sun.appserv.server.ServerLifecycleException
- Specified by:
handleEvent
in interface com.sun.appserv.server.LifecycleListener
- Throws:
com.sun.appserv.server.ServerLifecycleException
register
public void register(@NotNull
java.lang.String contextPath,
@NotNull
java.util.List<TCPAdapter> adapters)
- Specified by:
register
in class WSTCPModule
free
public void free(@NotNull
java.lang.String contextPath,
@NotNull
java.util.List<TCPAdapter> adapters)
- Specified by:
free
in class WSTCPModule
getPort
public int getPort()
- Description copied from class:
WSTCPModule
- Returns port, SOAP/TCP is listening on.
- Specified by:
getPort
in class WSTCPModule
- Returns:
- the port, SOAP/TCP is linstening on. -1 if SOAP/TCP doesn't open
own TCP port, but uses connections provided by runtime.