|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.api.server.Adapter<HttpAdapter.HttpToolkit>
com.sun.xml.ws.transport.http.HttpAdapter
public class HttpAdapter
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.
Nested Class Summary | |
---|---|
(package private) class |
HttpAdapter.AsyncTransport
|
(package private) class |
HttpAdapter.HttpToolkit
|
(package private) class |
HttpAdapter.Oneway
|
Nested classes/interfaces inherited from class com.sun.xml.ws.api.server.Adapter |
---|
Adapter.Toolkit |
Field Summary | |
---|---|
static boolean |
dump
Dumps what goes across HTTP transport. |
HttpAdapterList<? extends HttpAdapter> |
owner
|
static boolean |
publishStatusPage
|
Map<SDDocument,String> |
revWsdls
Reverse map of wsdls . |
String |
urlPattern
Servlet URL pattern with which this HttpAdapter is associated. |
Map<String,SDDocument> |
wsdls
SDDocument s keyed by the query string like "?abc". |
Fields inherited from class com.sun.xml.ws.api.server.Adapter |
---|
endpoint, pool |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
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. |
void |
invokeAsync(WSHTTPConnection con)
|
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". |
Methods inherited from class com.sun.xml.ws.api.server.Adapter |
---|
getEndpoint |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final 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 Map<SDDocument,String> revWsdls
wsdls
. Read-only.
public final HttpAdapterList<? extends HttpAdapter> owner
public final String urlPattern
HttpAdapter
is associated.
public static boolean dump
public static boolean publishStatusPage
Constructor Detail |
---|
protected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner)
protected HttpAdapter(WSEndpoint endpoint, HttpAdapterList<? extends HttpAdapter> owner, String urlPattern)
Method Detail |
---|
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 endpoint
public 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 endpoints
IOException
- when I/O errors happenpublic void invokeAsync(WSHTTPConnection con) 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 happen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |