Package com.sun.xml.ws.api.server
Interface BoundEndpoint
-
- All Superinterfaces:
Component
- All Known Implementing Classes:
ServerAdapter,ServletAdapter
public interface BoundEndpoint extends Component
Represents theWSEndpointbound to a particular transport.- Author:
- Kohsuke Kawaguchi
- See Also:
Module.getBoundEndpoints()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URIgetAddress()The address of the bound endpoint.URIgetAddress(String baseAddress)The address of the bound endpoint using the base address.WSEndpointgetEndpoint()The endpoint that was bound.
-
-
-
Method Detail
-
getEndpoint
@NotNull WSEndpoint getEndpoint()
The endpoint that was bound.Multiple
BoundEndpoints may point to the sameWSEndpoint, if it's bound to multiple transports.- Returns:
- the endpoint
-
getAddress
@NotNull URI getAddress()
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.
- Returns:
- address of the endpoint
-
getAddress
@NotNull URI getAddress(String baseAddress)
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"
- Parameters:
baseAddress- that is used in computing the full address- Returns:
- address of the endpoint
-
-