Module com.sun.xml.ws
Package 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:
ServerAdapterList
,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
.
- Author:
- Jitendra Kotamraju
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateAdapter
(String name, String urlPattern, WSEndpoint<?> endpoint) protected abstract T
createHttpAdapter
(String name, String urlPattern, WSEndpoint<?> endpoint) Implementations need to override this one to create a concrete class of HttpAdaptercreatePortAddressResolver
(String baseAddress, Class<?> endpointImpl) Creates a PortAddressResolver that maps portname to its addressget
(int index) int
size()
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
HttpAdapterList
public HttpAdapterList()Default constructor.
-
-
Method Details
-
createAdapter
- Specified by:
createAdapter
in interfaceDeploymentDescriptorParser.AdapterFactory<T extends HttpAdapter>
-
createHttpAdapter
Implementations need to override this one to create a concrete class of HttpAdapter -
createPortAddressResolver
Creates a PortAddressResolver that maps portname to its address- Parameters:
endpointImpl
- application endpoint Class that eventually serves the request.
-
get
- Specified by:
get
in interfaceList<T extends HttpAdapter>
- Specified by:
get
in classAbstractList<T extends HttpAdapter>
-
size
public int size()- Specified by:
size
in interfaceCollection<T extends HttpAdapter>
- Specified by:
size
in interfaceList<T extends HttpAdapter>
- Specified by:
size
in classAbstractCollection<T extends HttpAdapter>
-