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 ofHttpAdapters 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 ofHttpAdapter.- Author:
- Jitendra Kotamraju
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description HttpAdapterList()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TcreateAdapter(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 HttpAdapterPortAddressResolvercreatePortAddressResolver(String baseAddress, Class<?> endpointImpl)Creates a PortAddressResolver that maps portname to its addressTget(int index)intsize()-
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
-
-
-
-
Method Detail
-
createAdapter
public T createAdapter(String name, String urlPattern, WSEndpoint<?> endpoint)
- Specified by:
createAdapterin interfaceDeploymentDescriptorParser.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, Class<?> endpointImpl)
Creates a PortAddressResolver that maps portname to its address- Parameters:
endpointImpl- application endpoint Class that eventually serves the request.
-
get
public T get(int index)
- 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>
-
-