public class HttpAdapter extends Adapter<HttpAdapter.HttpToolkit>
Adapter
that receives messages in HTTP.
This object also assigns unique query string (such as "xsd=1") to
each SDDocument
so that they can be served by HTTP GET requests.
Modifier and Type | Class and Description |
---|---|
(package private) class |
HttpAdapter.AsyncTransport |
static interface |
HttpAdapter.CompletionCallback |
(package private) class |
HttpAdapter.HttpToolkit |
(package private) class |
HttpAdapter.Oneway |
Adapter.Toolkit
Modifier and Type | Field and Description |
---|---|
protected boolean |
disableJreplicaCookie |
static boolean |
dump
Dumps what goes across HTTP transport.
|
static HttpAdapter.CompletionCallback |
NO_OP_COMPLETION_CALLBACK |
HttpAdapterList<? extends HttpAdapter> |
owner |
static boolean |
publishStatusPage |
protected boolean |
stickyCookie |
String |
urlPattern
Servlet URL pattern with which this
HttpAdapter is associated. |
protected Map<String,SDDocument> |
wsdls
SDDocument s keyed by the query string like "?abc". |
Modifier | Constructor and Description |
---|---|
protected |
HttpAdapter(WSEndpoint endpoint,
HttpAdapterList<? extends HttpAdapter> owner)
Deprecated.
remove as soon as we can update the test util.
|
protected |
HttpAdapter(WSEndpoint endpoint,
HttpAdapterList<? extends HttpAdapter> owner,
String urlPattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSatellites(Packet packet) |
static HttpAdapter |
createAlone(WSEndpoint endpoint)
Creates a lone
HttpAdapter that does not know of any other
HttpAdapter s. |
protected HttpAdapter.HttpToolkit |
createToolkit()
Creates a
Adapter.Toolkit instance. |
static String |
fixQuotesAroundSoapAction(String soapAction)
Some stacks may send non WS-I BP 1.2 conforming SoapAction.
|
DocumentAddressResolver |
getDocumentAddressResolver(PortAddressResolver portAddressResolver) |
protected NonAnonymousResponseProcessor |
getNonAnonymousResponseProcessor() |
PortAddressResolver |
getPortAddressResolver(String baseAddress) |
ServiceDefinition |
getServiceDefinition()
Return the last known service definition of the endpoint.
|
String |
getValidPath()
Returns the "/abc/def/ghi" portion if
the URL pattern is "/abc/def/ghi/*".
|
void |
handle(WSHTTPConnection connection)
Receives the incoming HTTP connection and dispatches
it to JAX-WS.
|
boolean |
handleGet(WSHTTPConnection connection) |
void |
initWSDLMap(ServiceDefinition sdef)
Fill in WSDL map.
|
void |
invokeAsync(WSHTTPConnection con) |
void |
invokeAsync(WSHTTPConnection con,
HttpAdapter.CompletionCallback callback) |
void |
publishWSDL(WSHTTPConnection con)
Sends out the WSDL (and other referenced documents)
in response to the GET requests to URLs like "?wsdl" or "?xsd=2".
|
getEndpoint, getEndpointComponent, getPool, getSPI, reconfigure
protected Map<String,SDDocument> wsdls
SDDocument
s keyed by the query string like "?abc".
Used for serving documents via HTTP GET.
Empty if the endpoint doesn't have ServiceDefinition
.
Read-only.public final HttpAdapterList<? extends HttpAdapter> owner
public final String urlPattern
HttpAdapter
is associated.protected boolean stickyCookie
protected boolean disableJreplicaCookie
public static final HttpAdapter.CompletionCallback NO_OP_COMPLETION_CALLBACK
public static boolean dump
public static boolean publishStatusPage
protected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner)
endpoint
- web service endpointowner
- list of related adaptersprotected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner, String urlPattern)
public static HttpAdapter createAlone(WSEndpoint endpoint)
HttpAdapter
that does not know of any other
HttpAdapter
s.
This is convenient for creating an HttpAdapter
for an environment
where they don't know each other (such as JavaSE deployment.)endpoint
- web service endpointpublic ServiceDefinition getServiceDefinition()
public void initWSDLMap(ServiceDefinition sdef)
sdef
- service definitionpublic String getValidPath()
protected HttpAdapter.HttpToolkit createToolkit()
Adapter
Adapter.Toolkit
instance.
If the derived class doesn't have to add any per-thread state
to Adapter.Toolkit
, simply implement this as new Toolkit()
.
createToolkit
in class Adapter<HttpAdapter.HttpToolkit>
public void handle(@NotNull WSHTTPConnection connection) throws IOException
WSHTTPConnection
.
This method is invoked by the lower-level HTTP stack, and "connection" here is an HTTP connection.
To populate a request Packet
with more info,
define properties
on
WSHTTPConnection
.
connection
- to receive/send HTTP messages for web service endpointsIOException
- when I/O errors happenpublic boolean handleGet(@NotNull WSHTTPConnection connection) throws IOException
IOException
protected void addSatellites(Packet packet)
public static String fixQuotesAroundSoapAction(String soapAction)
Packet.soapAction
expects quoted soapAction value.soapAction
- SoapAction HTTP Headerprotected NonAnonymousResponseProcessor getNonAnonymousResponseProcessor()
public void invokeAsync(WSHTTPConnection con) throws IOException
IOException
public void invokeAsync(WSHTTPConnection con, HttpAdapter.CompletionCallback callback) throws IOException
IOException
public void publishWSDL(@NotNull WSHTTPConnection con) throws IOException
con
- The connection to which the data will be sent.IOException
- when I/O errors happenpublic PortAddressResolver getPortAddressResolver(String baseAddress)
public DocumentAddressResolver getDocumentAddressResolver(PortAddressResolver portAddressResolver)
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.