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>, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>
- Direct Known Subclasses:
- ServerAdapterList, ServletAdapterList
public abstract class HttpAdapterList<T extends HttpAdapter>
- extends java.util.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.
| Fields inherited from class java.util.AbstractList |
modCount |
| 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.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
HttpAdapterList
public HttpAdapterList()
createAdapter
public T createAdapter(java.lang.String name,
java.lang.String urlPattern,
WSEndpoint<?> endpoint)
- Specified by:
createAdapter in interface DeploymentDescriptorParser.AdapterFactory<T extends HttpAdapter>
createHttpAdapter
protected abstract T createHttpAdapter(java.lang.String name,
java.lang.String urlPattern,
WSEndpoint<?> endpoint)
- Implementations need to override this one to create a concrete class
of HttpAdapter
createPortAddressResolver
public PortAddressResolver createPortAddressResolver(java.lang.String baseAddress,
java.lang.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:
get in interface java.util.List<T extends HttpAdapter>- Specified by:
get in class java.util.AbstractList<T extends HttpAdapter>
size
public int size()
- Specified by:
size in interface java.util.Collection<T extends HttpAdapter>- Specified by:
size in interface java.util.List<T extends HttpAdapter>- Specified by:
size in class java.util.AbstractCollection<T extends HttpAdapter>
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.