Class TLcyCompositeOWSTransport

java.lang.Object
com.luciad.lucy.util.TLcyGenericComposite<ILcdOWSTransport>
com.luciad.lucy.io.TLcyCompositeOWSTransport
All Implemented Interfaces:
ILcdOWSTransport, Iterable<ILcdOWSTransport>

public final class TLcyCompositeOWSTransport extends TLcyGenericComposite<ILcdOWSTransport> implements ILcdOWSTransport

Composite implementation (see composite design pattern) of ILcdOWSTransport. It keeps a list of associated ILcdOWSTransports: one can add and remove other ILcdOWSTransports to this ILcdOWSTransport.

When creating a new TLcyCompositeOWSTransport using the default constructor (see TLcyCompositeOWSTransport()), the created instance will only work on/with the ILcdOWSTransports registered on this composite instance (see TLcyGenericComposite.add(Object) and TLcyGenericComposite.remove(Object)).

When creating a new TLcyCompositeOWSTransport using the constructor specifying an ILcyLucyEnv instance (see TLcyCompositeOWSTransport(ILcyLucyEnv), the created instance will work on the Lucy back-end services. It will use all registered ILcdOWSTransport instances of the Lucy back-end, adding and/or removing an ILcdOWSTransport will add/remove the ILcdOWSTransport as service from Lucy, ... .

Since:
2018.0
  • Constructor Details

    • TLcyCompositeOWSTransport

      public TLcyCompositeOWSTransport()
      Create a new empty composite ILcdOWSTransport that will act on transports registered in this instance only.
    • TLcyCompositeOWSTransport

      public TLcyCompositeOWSTransport(ILcyLucyEnv aLucyEnv)
      Create a composite ILcdOWSTransport that will act on the transports registered in the Lucy back-end.
      Parameters:
      aLucyEnv - The Lucy back-end
  • Method Details

    • performRequest

      public TLcdOWSInputStream performRequest(TLcdOWSOperation aOWSOperation, ILcdOWSRequest aOWSRequest) throws TLcdOWSTransportException
      Description copied from interface: ILcdOWSTransport
      Performs the specified operation passing in the parameters defined in the request object.
      Specified by:
      performRequest in interface ILcdOWSTransport
      Parameters:
      aOWSOperation - the operation to perform
      aOWSRequest - the request parameters
      Returns:
      a typed inputstream
      Throws:
      TLcdOWSTransportException - if an error occurs in the transport layer
    • isCompatibleURI

      public boolean isCompatibleURI(URI aURI)
      Description copied from interface: ILcdOWSTransport
      Determines whether the specified URI is compatible with this transport. When performing a request, a transport implementation should only attempt to use those access points whose URIs are compatible.
      Specified by:
      isCompatibleURI in interface ILcdOWSTransport
      Parameters:
      aURI - the URI to test
      Returns:
      true if the specified URI is compatible; false otherwise
    • createDCP

      public TLcdOWSDCP createDCP(URI aURI)
      Description copied from interface: ILcdOWSTransport
      Creates an OpenGIS Web Service DCP that can be used to access the specified URI using this transport. This method can be used to create a TLcdOWSOperation object that is needed to perform initial requests (in other words, requests that need to be performed before web service metadata has been retrieved).
      Specified by:
      createDCP in interface ILcdOWSTransport
      Parameters:
      aURI - the URI
      Returns:
      an OWS DCP object