com.sun.xml.ws.transport.http
Class HttpAdapterList<T extends HttpAdapter>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
com.sun.xml.ws.transport.http.HttpAdapterList<T>
- All Implemented Interfaces:
- DeploymentDescriptorParser.AdapterFactory<T>, Iterable<T>, Collection<T>, List<T>
- Direct Known Subclasses:
- ServletAdapterList
public abstract class HttpAdapterList<T extends HttpAdapter>
- extends AbstractList<T>
- implements DeploymentDescriptorParser.AdapterFactory<T>
List of HttpAdapter
s created together.
Some cases WAR file may contain multiple endpoints for ports in a WSDL.
If the runtime knows these ports, their port addresses can be patched.
This class keeps a list of HttpAdapter
s and use that information to patch
multiple port addresses.
Concrete implementations of this class need to override createHttpAdapter(java.lang.String, java.lang.String, com.sun.xml.ws.api.server.WSEndpoint>)
method to create implementations of HttpAdapter
.
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
HttpAdapterList
public HttpAdapterList()
createAdapter
public T createAdapter(String name,
String urlPattern,
WSEndpoint<?> endpoint)
- Specified by:
createAdapter
in interface DeploymentDescriptorParser.AdapterFactory<T extends HttpAdapter>
createHttpAdapter
protected abstract T createHttpAdapter(String name,
String urlPattern,
WSEndpoint<?> endpoint)
- Implementations need to override this one to create a concrete class
of HttpAdapter
createPortAddressResolver
public PortAddressResolver createPortAddressResolver(String baseAddress)
- Creates a PortAddressResolver that maps portname to its address
get
public T get(int index)
- Specified by:
get
in interface List<T extends HttpAdapter>
- Specified by:
get
in class AbstractList<T extends HttpAdapter>
size
public int size()
- Specified by:
size
in interface Collection<T extends HttpAdapter>
- Specified by:
size
in interface List<T extends HttpAdapter>
- Specified by:
size
in class AbstractCollection<T extends HttpAdapter>