public abstract class AbstractServerAsyncTransport<T> extends Object
Codec and other details.| Constructor and Description |
|---|
AbstractServerAsyncTransport(WSEndpoint endpoint)
WSEndpoint.setExecutor(java.util.concurrent.Executor) should be called before creating the
transport |
| Modifier and Type | Method and Description |
|---|---|
protected Packet |
decodePacket(T connection,
Codec codec)
decodes the transport data to Packet
|
protected abstract void |
encodePacket(T connection,
Packet packet,
Codec codec)
Encodes the
Packet to infoset and writes on the connection. |
protected abstract String |
getAcceptableMimeTypes(T connection)
If the request has Accept header, return that value
|
protected abstract org.jvnet.ws.message.PropertySet |
getPropertySet(T connection)
If there are any properties associated with the connection, those will
be added to
Packet |
protected abstract TransportBackChannel |
getTransportBackChannel(T connection)
TransportBackChannel used by jax-ws runtime to close the connection
while the processing of the request is still continuing. |
protected abstract WebServiceContextDelegate |
getWebServiceContextDelegate(T connection)
Return a
WebServiceContextDelegate using the underlying connection. |
protected void |
handle(T connection)
Reads and decodes infoset from the connection and invokes the endpoints.
|
public AbstractServerAsyncTransport(WSEndpoint endpoint)
WSEndpoint.setExecutor(java.util.concurrent.Executor) should be called before creating the
transportendpoint - webservices requests are directed towards this endpointprotected Packet decodePacket(T connection, @NotNull Codec codec) throws IOException
connection - that carries the web service requestcodec - for encoding/decoding MessagePacketIOException - if an i/o error happens while encoding/decodingprotected abstract void encodePacket(T connection, @NotNull Packet packet, @NotNull Codec codec) throws IOException
Packet to infoset and writes on the connection.connection - that carries the web service requestpacket - that needs to encoded to infosetcodec - that does the encoding of PacketIOException - if an i/o error happens while encoding/decoding@Nullable protected abstract String getAcceptableMimeTypes(T connection)
connection - that carries the web service request@Nullable protected abstract TransportBackChannel getTransportBackChannel(T connection)
TransportBackChannel used by jax-ws runtime to close the connection
while the processing of the request is still continuing. In oneway HTTP case, a
response code needs to be sent before invoking the endpoint.connection - that carries the web service request@NotNull protected abstract org.jvnet.ws.message.PropertySet getPropertySet(T connection)
Packetconnection - that carries the web service requestPropertySet for the connection@NotNull protected abstract WebServiceContextDelegate getWebServiceContextDelegate(T connection)
WebServiceContextDelegate using the underlying connection.connection - that carries the web service requestprotected void handle(T connection) throws IOException
connection - that carries the web service requestIOException - if an i/o error happens while encoding/decodingCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.