com.sun.xml.ws.transport.http
Class HttpAdapter.AsyncTransport

java.lang.Object
  extended by com.sun.xml.ws.api.server.AbstractServerAsyncTransport<WSHTTPConnection>
      extended by com.sun.xml.ws.transport.http.HttpAdapter.AsyncTransport
Enclosing class:
HttpAdapter

final class HttpAdapter.AsyncTransport
extends AbstractServerAsyncTransport<WSHTTPConnection>


Constructor Summary
HttpAdapter.AsyncTransport()
           
 
Method Summary
protected  void encodePacket(WSHTTPConnection con, Packet packet, Codec codec)
          Encodes the Packet to infoset and writes on the connection.
protected  String getAcceptableMimeTypes(WSHTTPConnection con)
          If the request has Accept header, return that value
protected  PropertySet getPropertySet(WSHTTPConnection con)
          If there are any properties associated with the connection, those will be added to Packet
protected  TransportBackChannel getTransportBackChannel(WSHTTPConnection con)
          TransportBackChannel used by jax-ws runtime to close the connection while the processing of the request is still continuing.
protected  WebServiceContextDelegate getWebServiceContextDelegate(WSHTTPConnection con)
          Return a WebServiceContextDelegate using the underlying connection.
 void handleAsync(WSHTTPConnection con)
           
 
Methods inherited from class com.sun.xml.ws.api.server.AbstractServerAsyncTransport
decodePacket, handle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpAdapter.AsyncTransport

public HttpAdapter.AsyncTransport()
Method Detail

handleAsync

public void handleAsync(WSHTTPConnection con)
                 throws IOException
Throws:
IOException

encodePacket

protected void encodePacket(WSHTTPConnection con,
                            @NotNull
                            Packet packet,
                            @NotNull
                            Codec codec)
                     throws IOException
Description copied from class: AbstractServerAsyncTransport
Encodes the Packet to infoset and writes on the connection.

Specified by:
encodePacket in class AbstractServerAsyncTransport<WSHTTPConnection>
Parameters:
con - that carries the web service request
packet - that needs to encoded to infoset
codec - that does the encoding of Packet
Throws:
IOException - if an i/o error happens while encoding/decoding

getAcceptableMimeTypes

@Nullable
protected String getAcceptableMimeTypes(WSHTTPConnection con)
Description copied from class: AbstractServerAsyncTransport
If the request has Accept header, return that value

Specified by:
getAcceptableMimeTypes in class AbstractServerAsyncTransport<WSHTTPConnection>
Parameters:
con - that carries the web service request
Returns:
Accept MIME types

getTransportBackChannel

@Nullable
protected TransportBackChannel getTransportBackChannel(WSHTTPConnection con)
Description copied from class: AbstractServerAsyncTransport
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.

Specified by:
getTransportBackChannel in class AbstractServerAsyncTransport<WSHTTPConnection>
Parameters:
con - that carries the web service request
Returns:
TransportBackChannel instance using the connection

getPropertySet

@NotNull
protected PropertySet getPropertySet(WSHTTPConnection con)
Description copied from class: AbstractServerAsyncTransport
If there are any properties associated with the connection, those will be added to Packet

Specified by:
getPropertySet in class AbstractServerAsyncTransport<WSHTTPConnection>
Parameters:
con - that carries the web service request
Returns:
PropertySet for the connection

getWebServiceContextDelegate

@NotNull
protected WebServiceContextDelegate getWebServiceContextDelegate(WSHTTPConnection con)
Description copied from class: AbstractServerAsyncTransport
Return a WebServiceContextDelegate using the underlying connection.

Specified by:
getWebServiceContextDelegate in class AbstractServerAsyncTransport<WSHTTPConnection>
Parameters:
con - that carries the web service request
Returns:
non-null WebServiceContextDelegate instance