|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.server.AbstractServerAsyncTransport<T>
public abstract class AbstractServerAsyncTransport<T>
Partial server side async transport implementation. It manages pooling of
Codec
and other details.
Constructor Summary | |
---|---|
AbstractServerAsyncTransport(WSEndpoint endpoint)
WSEndpoint.setExecutor(java.util.concurrent.Executor) should be called before creating the
transport |
Method Summary | |
---|---|
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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractServerAsyncTransport(WSEndpoint endpoint)
WSEndpoint.setExecutor(java.util.concurrent.Executor)
should be called before creating the
transport
endpoint
- webservices requests are directed towards this endpointMethod Detail |
---|
protected 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 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 Packet
IOException
- 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 PropertySet getPropertySet(T connection)
Packet
connection
- that carries the web service request
PropertySet
for the connection@NotNull protected abstract WebServiceContextDelegate getWebServiceContextDelegate(T connection)
WebServiceContextDelegate
using the underlying connection.
connection
- that carries the web service request
protected void handle(T connection) throws IOException
connection
- that carries the web service request
IOException
- if an i/o error happens while encoding/decoding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |