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

java.lang.Object
  extended by com.sun.xml.ws.api.server.Adapter<TCPAdapter.TCPToolkit>
      extended by com.sun.xml.ws.transport.tcp.server.TCPAdapter
All Implemented Interfaces:
Component, Reconfigurable
Direct Known Subclasses:
TCP109Adapter, TCPServiceChannelWSAdapter

public class TCPAdapter
extends Adapter<TCPAdapter.TCPToolkit>

Author:
Alexey Stashok

Nested Class Summary
 class TCPAdapter.TCPToolkit
           
 
Nested classes/interfaces inherited from class com.sun.xml.ws.api.server.Adapter
Adapter.Toolkit
 
Field Summary
static DeploymentDescriptorParser.AdapterFactory<TCPAdapter> FACTORY
           
 
Fields inherited from class com.sun.xml.ws.api.server.Adapter
endpoint, pool
 
Constructor Summary
TCPAdapter(String name, String urlPattern, WSEndpoint endpoint)
           
 
Method Summary
protected  TCPAdapter.TCPToolkit createToolkit()
          Creates a Adapter.Toolkit instance.
 String getValidPath()
          Returns the "/abc/def/ghi" portion if the URL pattern is "/abc/def/ghi/*".
 void handle(ChannelContext channelContext)
           
static void sendErrorResponse(ChannelContext channelContext, WSTCPError message)
           
 
Methods inherited from class com.sun.xml.ws.api.server.Adapter
getEndpoint, getEndpointComponent, getPool, getSPI, reconfigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY

public static final DeploymentDescriptorParser.AdapterFactory<TCPAdapter> FACTORY
Constructor Detail

TCPAdapter

public TCPAdapter(@NotNull
                  String name,
                  @NotNull
                  String urlPattern,
                  @NotNull
                  WSEndpoint endpoint)
Method Detail

handle

public void handle(@NotNull
                   ChannelContext channelContext)
            throws IOException,
                   WSTCPException
Throws:
IOException
WSTCPException

createToolkit

protected TCPAdapter.TCPToolkit createToolkit()
Description copied from class: Adapter
Creates a Adapter.Toolkit instance.

If the derived class doesn't have to add any per-thread state to Adapter.Toolkit, simply implement this as new Toolkit().

Specified by:
createToolkit in class Adapter<TCPAdapter.TCPToolkit>

getValidPath

public String getValidPath()
Returns the "/abc/def/ghi" portion if the URL pattern is "/abc/def/ghi/*".


sendErrorResponse

public static void sendErrorResponse(@NotNull
                                     ChannelContext channelContext,
                                     WSTCPError message)
                              throws IOException,
                                     WSTCPException
Throws:
IOException
WSTCPException


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