Class ServerAdapter
java.lang.Object
com.sun.xml.ws.api.server.Adapter<com.sun.xml.ws.transport.http.HttpAdapter.HttpToolkit>
com.sun.xml.ws.transport.http.HttpAdapter
com.sun.xml.ws.transport.http.server.ServerAdapter
- All Implemented Interfaces:
Component,Reconfigurable,BoundEndpoint
HttpAdapter for Endpoint API.
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 ServerAdapter.
This class implements BoundEndpoint and represent the
server-WSEndpoint association for Endpoint API's transport
- Author:
- Jitendra Kotamraju
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.xml.ws.transport.http.HttpAdapter
HttpAdapter.CompletionCallbackNested classes/interfaces inherited from class com.sun.xml.ws.api.server.Adapter
Adapter.Toolkit -
Field Summary
Fields inherited from class com.sun.xml.ws.transport.http.HttpAdapter
disableJreplicaCookie, dump, dump_threshold, NO_OP_COMPLETION_CALLBACK, owner, publishStatusPage, stickyCookie, urlPattern, wsdls -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedServerAdapter(String name, String urlPattern, WSEndpoint endpoint, ServerAdapterList owner) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()The address of the bound endpoint.getAddress(String baseAddress) The address of the bound endpoint using the base address.getName()Gets the name of the endpoint as given in thesun-jaxws.xmldeployment descriptor.toString()Methods inherited from class com.sun.xml.ws.transport.http.HttpAdapter
addSatellites, createAlone, createToolkit, fixQuotesAroundSoapAction, getDocumentAddressResolver, getNonAnonymousResponseProcessor, getPortAddressResolver, getServiceDefinition, getValidPath, handle, handleGet, initWSDLMap, invokeAsync, invokeAsync, publishWSDL, setDump, setDumpTreshold, setPublishStatus, writeClientErrorMethods inherited from class com.sun.xml.ws.api.server.Adapter
getEndpoint, getEndpointComponent, getPool, getSPI, reconfigureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sun.xml.ws.api.server.BoundEndpoint
getEndpoint
-
Constructor Details
-
ServerAdapter
protected ServerAdapter(String name, String urlPattern, WSEndpoint endpoint, ServerAdapterList owner)
-
-
Method Details
-
getName
Gets the name of the endpoint as given in thesun-jaxws.xmldeployment descriptor. -
getAddress
Description copied from interface:BoundEndpointThe address of the bound endpoint.For example, if this endpoint is bound to a servlet endpoint "http://foobar/myapp/myservice", then this method should return that address.
- Specified by:
getAddressin interfaceBoundEndpoint- Returns:
- address of the endpoint
-
getAddress
Description copied from interface:BoundEndpointThe address of the bound endpoint using the base address. Often times, baseAddress is only avaialble during the request.If 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"
- Specified by:
getAddressin interfaceBoundEndpoint- Parameters:
baseAddress- that is used in computing the full address- Returns:
- address of the endpoint
-
dispose
public void dispose() -
getUrlPattern
-
toString
-