Class TCPAdapter
- java.lang.Object
-
- com.sun.xml.ws.api.server.Adapter<TCPAdapter.TCPToolkit>
-
- com.sun.xml.ws.transport.tcp.server.TCPAdapter
-
- All Implemented Interfaces:
Component
,Reconfigurable
- Direct Known Subclasses:
TCPServiceChannelWSAdapter
public class TCPAdapter extends Adapter<TCPAdapter.TCPToolkit>
- Author:
- Alexey Stashok
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TCPAdapter.TCPToolkit
-
Nested classes/interfaces inherited from class com.sun.xml.ws.api.server.Adapter
Adapter.Toolkit
-
-
Field Summary
Fields Modifier and Type Field Description static DeploymentDescriptorParser.AdapterFactory<TCPAdapter>
FACTORY
-
Constructor Summary
Constructors Constructor Description TCPAdapter(String name, String urlPattern, WSEndpoint endpoint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TCPAdapter.TCPToolkit
createToolkit()
Creates aAdapter.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
-
-
-
-
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 aAdapter.Toolkit
instance.If the derived class doesn't have to add any per-thread state to
Adapter.Toolkit
, simply implement this asnew Toolkit()
.- Specified by:
createToolkit
in classAdapter<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
-
-