com.sun.xml.ws.transport.http.server
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
public final class ServerAdapter
- extends HttpAdapter
- implements 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
|
Method Summary |
void |
dispose()
|
java.net.URI |
getAddress()
The address of the bound endpoint. |
java.net.URI |
getAddress(java.lang.String baseAddress)
The address of the bound endpoint using the base address. |
java.lang.String |
getName()
Gets the name of the endpoint as given in the sun-jaxws.xml
deployment descriptor. |
java.lang.String |
getUrlPattern()
|
java.lang.String |
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, setPublishStatus, writeClientError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServerAdapter
protected ServerAdapter(java.lang.String name,
java.lang.String urlPattern,
WSEndpoint endpoint,
ServerAdapterList owner)
getName
public java.lang.String getName()
- Gets the name of the endpoint as given in the sun-jaxws.xml
deployment descriptor.
getAddress
@NotNull
public java.net.URI getAddress()
- Description copied from interface:
BoundEndpoint
- The 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:
getAddress in interface BoundEndpoint
- Returns:
- address of the endpoint
getAddress
@NotNull
public java.net.URI getAddress(java.lang.String baseAddress)
- Description copied from interface:
BoundEndpoint
- The 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:
getAddress in interface BoundEndpoint
- Parameters:
baseAddress - that is used in computing the full address
- Returns:
- address of the endpoint
dispose
public void dispose()
getUrlPattern
public java.lang.String getUrlPattern()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.