public abstract class HttpAdapterList<T extends HttpAdapter> extends AbstractList<T> implements DeploymentDescriptorParser.AdapterFactory<T>
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.
modCount| Constructor and Description |
|---|
HttpAdapterList() |
| Modifier and Type | Method and Description |
|---|---|
T |
createAdapter(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 HttpAdapter
|
PortAddressResolver |
createPortAddressResolver(String baseAddress,
Class<?> endpointImpl)
Creates a PortAddressResolver that maps portname to its address
|
T |
get(int index) |
int |
size() |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArrayparallelStream, removeIf, streampublic T createAdapter(String name, String urlPattern, WSEndpoint<?> endpoint)
createAdapter in interface DeploymentDescriptorParser.AdapterFactory<T extends HttpAdapter>protected abstract T createHttpAdapter(String name, String urlPattern, WSEndpoint<?> endpoint)
public PortAddressResolver createPortAddressResolver(String baseAddress, Class<?> endpointImpl)
endpointImpl - application endpoint Class that eventually serves the request.public T get(int index)
get in interface List<T extends HttpAdapter>get in class AbstractList<T extends HttpAdapter>public int size()
size in interface Collection<T extends HttpAdapter>size in interface List<T extends HttpAdapter>size in class AbstractCollection<T extends HttpAdapter>Copyright © 2015 Oracle Corporation. All rights reserved.