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 com.sun.xml.ws.api.message.Packet |
decodePacket(T connection,
Codec codec)
decodes the transport data to Packet
|
protected abstract void |
encodePacket(T connection,
com.sun.xml.ws.api.message.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 com.oracle.webservices.api.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 com.sun.xml.ws.api.message.Packet decodePacket(T connection, @NotNull Codec codec) throws IOException
connection
- that carries the web service requestcodec
- for encoding/decoding Message
Packet
IOException
- if an i/o error happens while encoding/decodingprotected abstract void encodePacket(T connection, @NotNull com.sun.xml.ws.api.message.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 com.oracle.webservices.api.message.PropertySet getPropertySet(T connection)
Packet
connection
- 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 © 2015 Oracle Corporation. All rights reserved.