Class TLcyCompositeOWSTransport
- All Implemented Interfaces:
ILcdOWSTransport,Iterable<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
-
Field Summary
Fields inherited from class com.luciad.lucy.util.TLcyGenericComposite
PRIORITY_DEFAULT, PRIORITY_FALLBACK -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new empty compositeILcdOWSTransportthat will act on transports registered in this instance only.TLcyCompositeOWSTransport(ILcyLucyEnv aLucyEnv) Create a compositeILcdOWSTransportthat will act on the transports registered in the Lucy back-end. -
Method Summary
Modifier and TypeMethodDescriptionCreates an OpenGIS Web Service DCP that can be used to access the specified URI using this transport.booleanisCompatibleURI(URI aURI) Determines whether the specified URI is compatible with this transport.performRequest(TLcdOWSOperation aOWSOperation, ILcdOWSRequest aOWSRequest) Performs the specified operation passing in the parameters defined in the request object.Methods inherited from class com.luciad.lucy.util.TLcyGenericComposite
add, add, getList, getPriority, iterator, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.luciad.ogc.ows.model.ILcdOWSTransport
canPerformRequestMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TLcyCompositeOWSTransport
public TLcyCompositeOWSTransport()Create a new empty compositeILcdOWSTransportthat will act on transports registered in this instance only. -
TLcyCompositeOWSTransport
Create a compositeILcdOWSTransportthat 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:ILcdOWSTransportPerforms the specified operation passing in the parameters defined in the request object.- Specified by:
performRequestin interfaceILcdOWSTransport- Parameters:
aOWSOperation- the operation to performaOWSRequest- the request parameters- Returns:
- a typed inputstream
- Throws:
TLcdOWSTransportException- if an error occurs in the transport layer
-
isCompatibleURI
Description copied from interface:ILcdOWSTransportDetermines 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:
isCompatibleURIin interfaceILcdOWSTransport- Parameters:
aURI- the URI to test- Returns:
- true if the specified URI is compatible; false otherwise
-
createDCP
Description copied from interface:ILcdOWSTransportCreates an OpenGIS Web Service DCP that can be used to access the specified URI using this transport. This method can be used to create aTLcdOWSOperationobject 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:
createDCPin interfaceILcdOWSTransport- Parameters:
aURI- the URI- Returns:
- an OWS DCP object
-