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
HttpAdapters 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 HttpAdapters 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAdapter(String name, String urlPattern, WSEndpoint<?> endpoint) protected abstract TcreateHttpAdapter(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) intsize()Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
HttpAdapterList
public HttpAdapterList()
-
-
Method Details
-
createAdapter
- Specified by:
createAdapterin 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:
getin interfaceList<T extends HttpAdapter>- Specified by:
getin classAbstractList<T extends HttpAdapter>
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends HttpAdapter>- Specified by:
sizein interfaceList<T extends HttpAdapter>- Specified by:
sizein classAbstractCollection<T extends HttpAdapter>
-