Class TLcyCompositeOWSTransport
- All Implemented Interfaces:
ILcdOWSTransport
,Iterable<ILcdOWSTransport>
Composite implementation (see composite design pattern) of ILcdOWSTransport
. It
keeps a list of associated ILcdOWSTransport
s: one can add and remove other
ILcdOWSTransport
s 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
ConstructorDescriptionCreate a new empty compositeILcdOWSTransport
that will act on transports registered in this instance only.TLcyCompositeOWSTransport
(ILcyLucyEnv aLucyEnv) Create a compositeILcdOWSTransport
that 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.boolean
isCompatibleURI
(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, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.luciad.ogc.ows.model.ILcdOWSTransport
canPerformRequest
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
TLcyCompositeOWSTransport
public TLcyCompositeOWSTransport()Create a new empty compositeILcdOWSTransport
that will act on transports registered in this instance only. -
TLcyCompositeOWSTransport
Create a compositeILcdOWSTransport
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 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: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 interfaceILcdOWSTransport
- Parameters:
aURI
- the URI to test- Returns:
- true if the specified URI is compatible; false otherwise
-
createDCP
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 aTLcdOWSOperation
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 interfaceILcdOWSTransport
- Parameters:
aURI
- the URI- Returns:
- an OWS DCP object
-