com.sun.xml.ws.transport.tcp.server
Class WSTCPDelegate

java.lang.Object
  extended by 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
WSTCPDelegate()
           
 
Method Summary
 void destroy()
           
 void freeAdapters(String contextPath, List<TCPAdapter> adapters)
           
 TCPAdapter getTarget(WSTCPURI tcpURI)
          Determines which TCPAdapter serves the given request.
 void onError(ChannelContext channelContext, WSTCPError error)
          Implementation of TCPMessageListener.onError method is called if error occured during frame processing on upper level
 void onMessage(ChannelContext channelContext)
          Implementation of TCPMessageListener.onMessage method is called once request message come
 void registerAdapters(String contextPath, List<TCPAdapter> adapters)
           
 void setCustomWSRegistry(WSTCPAdapterRegistry customWSRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTCPDelegate

public WSTCPDelegate()
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 which TCPAdapter serves the given request.

Specified by:
getTarget in interface WSTCPAdapterRegistry

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:
onError in interface TCPMessageListener
Throws:
IOException

onMessage

public void onMessage(@NotNull
                      ChannelContext channelContext)
               throws IOException
Implementation of TCPMessageListener.onMessage method is called once request message come

Specified by:
onMessage in interface TCPMessageListener
Throws:
IOException

destroy

public void destroy()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.