|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.protocol.ows.client.AbstractOWSClient<T>
public abstract class AbstractOWSClient<T extends OWSCapabilitiesAdapter>
Provides common base functionality for API-level client implementations that access OGC web services.
Field Summary | |
---|---|
protected T |
capaDoc
|
Constructor Summary | |
---|---|
protected |
AbstractOWSClient(URL capaUrl)
Creates a new AbstractOWSClient instance. |
Method Summary | |
---|---|
protected OWSResponse |
doGet(URL endPoint,
Map<String,String> params,
Map<String,String> headers)
Performs an HTTP-GET request to the service. |
protected OWSResponse |
doPost(URL endPoint,
String contentType,
StreamBufferStore body,
Map<String,String> headers)
Performs an HTTP-POST request to the service. |
protected abstract T |
getCapabilitiesAdapter(org.apache.axiom.om.OMElement rootEl,
String version)
Returns an OWSCapabilitiesAdapter instance suitable for the specific service and version. |
protected URL |
getGetUrl(String operationName)
|
protected List<URL> |
getGetUrls(String operationName)
|
ServiceIdentification |
getIdentification()
Returns the ServiceIdentification metadata provided by the server. |
OperationsMetadata |
getOperations()
Returns the OperationsMetadata provided by the server. |
protected URL |
getPostUrl(String operationName)
|
protected List<URL> |
getPostUrls(String operationName)
|
ServiceProvider |
getProvider()
Returns the ServiceProvider metadata provided by the server. |
protected boolean |
isOperationSupported(String operationName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final T extends OWSCapabilitiesAdapter capaDoc
Constructor Detail |
---|
protected AbstractOWSClient(URL capaUrl) throws OWSExceptionReport, XMLStreamException, IOException
AbstractOWSClient
instance.
capaUrl
- url of a WFS capabilities document, usually this is a GetCapabilities
request to the
service, must not be null
OWSExceptionReport
- if the server replied with a service exception report
XMLStreamException
IOException
- if a communication/network problem occuredMethod Detail |
---|
protected abstract T getCapabilitiesAdapter(org.apache.axiom.om.OMElement rootEl, String version) throws IOException
OWSCapabilitiesAdapter
instance suitable for the specific service and version.
rootEl
- root element of the service capabilities, never null
version
- capabilities version, may be null
(for broken capabilities responses)
null
IOException
public final ServiceIdentification getIdentification()
ServiceIdentification
metadata provided by the server.
null
public final ServiceProvider getProvider()
ServiceProvider
metadata provided by the server.
null
public final OperationsMetadata getOperations()
OperationsMetadata
provided by the server.
null
protected boolean isOperationSupported(String operationName)
protected URL getGetUrl(String operationName)
protected URL getPostUrl(String operationName)
protected List<URL> getGetUrls(String operationName)
protected List<URL> getPostUrls(String operationName)
protected OWSResponse doGet(URL endPoint, Map<String,String> params, Map<String,String> headers) throws IOException
NOTE: The caller must call OWSResponse.close()
on the returned object eventually, otherwise
underlying resources (connections) may not be freed.
endPoint
- params
- headers
-
IOException
protected OWSResponse doPost(URL endPoint, String contentType, StreamBufferStore body, Map<String,String> headers) throws IOException
NOTE: The caller must call OWSResponse.close()
on the returned object eventually, otherwise
underlying resources (connections) may not be freed.
endPoint
- contentType
- body
- headers
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |