public final class TLcyCompositeOWSTransport extends TLcyGenericComposite<ILcdOWSTransport> implements 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, ... .
PRIORITY_DEFAULT, PRIORITY_FALLBACK
Constructor and Description |
---|
TLcyCompositeOWSTransport()
Create a new empty composite
ILcdOWSTransport that will act on transports registered in this instance only. |
TLcyCompositeOWSTransport(ILcyLucyEnv aLucyEnv)
Create a composite
ILcdOWSTransport that will act on the transports registered in the Lucy back-end. |
Modifier and Type | Method and Description |
---|---|
TLcdOWSDCP |
createDCP(URI aURI)
Creates 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.
|
TLcdOWSInputStream |
performRequest(TLcdOWSOperation aOWSOperation,
ILcdOWSRequest aOWSRequest)
Performs the specified operation passing in the parameters defined in the request object.
|
add, add, getList, getPriority, iterator, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canPerformRequest
forEach, spliterator
public TLcyCompositeOWSTransport()
ILcdOWSTransport
that will act on transports registered in this instance only.public TLcyCompositeOWSTransport(ILcyLucyEnv aLucyEnv)
ILcdOWSTransport
that will act on the transports registered in the Lucy back-end.aLucyEnv
- The Lucy back-endpublic TLcdOWSInputStream performRequest(TLcdOWSOperation aOWSOperation, ILcdOWSRequest aOWSRequest) throws TLcdOWSTransportException
ILcdOWSTransport
performRequest
in interface ILcdOWSTransport
aOWSOperation
- the operation to performaOWSRequest
- the request parametersTLcdOWSTransportException
- if an error occurs in the transport layerpublic boolean isCompatibleURI(URI aURI)
ILcdOWSTransport
isCompatibleURI
in interface ILcdOWSTransport
aURI
- the URI to testpublic TLcdOWSDCP createDCP(URI aURI)
ILcdOWSTransport
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).createDCP
in interface ILcdOWSTransport
aURI
- the URI