com.sun.xml.ws.api.server.BoundEndpoint Maven / Gradle / Ivy
/*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.sun.xml.ws.api.server;
import com.sun.istack.NotNull;
import com.sun.xml.ws.api.Component;
import java.net.URI;
/**
* Represents the {@link WSEndpoint} bound to a particular transport.
*
* @see Module#getBoundEndpoints()
* @author Kohsuke Kawaguchi
*/
public interface BoundEndpoint extends Component {
/**
* The endpoint that was bound.
*
*
* Multiple {@link BoundEndpoint}s may point to the same {@link WSEndpoint},
* if it's bound to multiple transports.
*
* @return the endpoint
*/
@NotNull WSEndpoint getEndpoint();
/**
* 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.
*
* @return address of the endpoint
*/
@NotNull URI getAddress();
/**
* 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"
*
* @param baseAddress that is used in computing the full address
* @return address of the endpoint
*/
@NotNull URI getAddress(String baseAddress);
}