public class ServletAdapter extends HttpAdapter implements BoundEndpoint
HttpAdapter for servlets.
This is a thin wrapper around HttpAdapter with some description
specified in the deployment (in particular those information are related
to how a request is routed to a ServletAdapter.
This class implements BoundEndpoint and represent the
servlet-WSEndpoint association for
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ServletAdapter.AsyncCompletionCheck
Synchronizes the CompletionHandler action and Container's timeout action.
|
HttpAdapter.CompletionCallbackAdapter.Toolkit| Modifier and Type | Field and Description |
|---|---|
(package private) String |
name |
disableJreplicaCookie, dump, NO_OP_COMPLETION_CALLBACK, owner, publishStatusPage, stickyCookie, urlPattern, wsdls| Modifier | Constructor and Description |
|---|---|
protected |
ServletAdapter(String name,
String urlPattern,
WSEndpoint endpoint,
ServletAdapterList owner) |
| Modifier and Type | Method and Description |
|---|---|
protected WSHTTPConnection |
createConnection(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
URI |
getAddress()
The address of the bound endpoint.
|
URI |
getAddress(String baseAddress)
The address of the bound endpoint using the base address.
|
String |
getName()
Gets the name of the endpoint as given in the sun-jaxws.xml
deployment descriptor.
|
QName |
getPortName()
Convenient method to return a port name from
WSEndpoint. |
javax.servlet.ServletContext |
getServletContext() |
void |
handle(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Version of
HttpAdapter.handle(WSHTTPConnection)
that takes convenient parameters for servlet. |
void |
invokeAsync(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpAdapter.CompletionCallback callback)
Version of
HttpAdapter.handle(WSHTTPConnection) that takes convenient parameters for servlet. |
void |
publishWSDL(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
|
String |
toString() |
addSatellites, createAlone, createToolkit, fixQuotesAroundSoapAction, getDocumentAddressResolver, getNonAnonymousResponseProcessor, getPortAddressResolver, getServiceDefinition, getValidPath, handle, handleGet, initWSDLMap, invokeAsync, invokeAsync, publishWSDLgetEndpoint, getEndpointComponent, getPool, getSPI, reconfigureclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndpointfinal String name
protected ServletAdapter(String name, String urlPattern, WSEndpoint endpoint, ServletAdapterList owner)
public javax.servlet.ServletContext getServletContext()
public String getName()
@NotNull public URI getAddress()
BoundEndpointFor example, if this endpoint is bound to a servlet endpoint "http://foobar/myapp/myservice", then this method should return that address.
getAddress in interface BoundEndpoint@NotNull public URI getAddress(String baseAddress)
BoundEndpointIf the endpoint is bound to a servlet endpoint, the base address won't include the url-pattern, so the base address would be "http://host:port/context". This method would include url-pattern for the endpoint and return that address for e.g. "http://host:port/context/url-pattern"
getAddress in interface BoundEndpointbaseAddress - that is used in computing the full addresspublic QName getPortName()
WSEndpoint.WSEndpoint isn't tied to any paritcular port.public void handle(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
HttpAdapter.handle(WSHTTPConnection)
that takes convenient parameters for servlet.context - Servlet Contextrequest - Servlet Requestresponse - Servlet ResponseIOException - when there is i/o error in handling requestprotected WSHTTPConnection createConnection(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public void invokeAsync(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
HttpAdapter.CompletionCallback callback)
throws IOException
HttpAdapter.handle(WSHTTPConnection) that takes convenient parameters for servlet.
Based on the async capabilities of the request and the application processing it, the method may run in asynchronous mode.
When run in async mode, this method returns immediately. The response is delayed until the application is ready with the response or
the corresponding asynchronous operation times out. The CompletionCallback is guaranteed to run after response is committed..context - Servlet Contextrequest - Servlet Requestresponse - Servlet Responsecallback - CompletionCallbackIOException - when there is i/o error in handling requestpublic void publishWSDL(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
handle(ServletContext, HttpServletRequest, HttpServletResponse)context - Servlet Contextrequest - Servlet Requestresponse - Servlet ResponseIOException - when there is i/o error in handling requestCopyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.