Class WSTCPDelegate
- java.lang.Object
-
- com.sun.xml.ws.transport.tcp.server.WSTCPDelegate
-
- All Implemented Interfaces:
TCPMessageListener,WSTCPAdapterRegistry
public final class WSTCPDelegate extends Object implements WSTCPAdapterRegistry, TCPMessageListener
- Author:
- Alexey Stashok
-
-
Constructor Summary
Constructors Constructor Description WSTCPDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidfreeAdapters(String contextPath, List<TCPAdapter> adapters)TCPAdaptergetTarget(WSTCPURI tcpURI)Determines whichTCPAdapterserves the given request.voidonError(ChannelContext channelContext, WSTCPError error)Implementation of TCPMessageListener.onError method is called if error occured during frame processing on upper levelvoidonMessage(ChannelContext channelContext)Implementation of TCPMessageListener.onMessage method is called once request message comevoidregisterAdapters(String contextPath, List<TCPAdapter> adapters)voidsetCustomWSRegistry(WSTCPAdapterRegistry customWSRegistry)
-
-
-
Method Detail
-
setCustomWSRegistry
public void setCustomWSRegistry(@NotNull WSTCPAdapterRegistry customWSRegistry)
-
registerAdapters
public void registerAdapters(@NotNull String contextPath, @NotNull List<TCPAdapter> adapters)
-
freeAdapters
public void freeAdapters(@NotNull String contextPath, @NotNull List<TCPAdapter> adapters)
-
getTarget
@Nullable public TCPAdapter getTarget(@NotNull WSTCPURI tcpURI)
Determines whichTCPAdapterserves the given request.- Specified by:
getTargetin interfaceWSTCPAdapterRegistry
-
onError
public void onError(ChannelContext channelContext, WSTCPError error) throws IOException
Implementation of TCPMessageListener.onError method is called if error occured during frame processing on upper level- Specified by:
onErrorin interfaceTCPMessageListener- Throws:
IOException
-
onMessage
public void onMessage(@NotNull ChannelContext channelContext) throws IOException
Implementation of TCPMessageListener.onMessage method is called once request message come- Specified by:
onMessagein interfaceTCPMessageListener- Throws:
IOException
-
destroy
public void destroy()
-
-