com.sun.xml.ws.transport.http
Class HttpAdapterList<T extends HttpAdapter>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<T>
          extended by com.sun.xml.ws.transport.http.HttpAdapterList<T>
All Implemented Interfaces:
DeploymentDescriptorParser.AdapterFactory<T>, Iterable<T>, Collection<T>, List<T>
Direct Known Subclasses:
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.


Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
HttpAdapterList()
           
 
Method Summary
 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)
          Creates a PortAddressResolver that maps portname to its address
 T get(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.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

HttpAdapterList

public HttpAdapterList()
Method Detail

createAdapter

public T createAdapter(String name,
                       String urlPattern,
                       WSEndpoint<?> endpoint)
Specified by:
createAdapter in interface DeploymentDescriptorParser.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)
Creates a PortAddressResolver that maps portname to its address


get

public T get(int index)
Specified by:
get in interface List<T extends HttpAdapter>
Specified by:
get in class AbstractList<T extends HttpAdapter>

size

public int size()
Specified by:
size in interface Collection<T extends HttpAdapter>
Specified by:
size in interface List<T extends HttpAdapter>
Specified by:
size in class AbstractCollection<T extends HttpAdapter>