|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.remoteclient.ogc.OGCProtocolHandler
org.gvsig.remoteclient.wmts.WMTSProtocolHandler
public abstract class WMTSProtocolHandler
Abstract class that represents handlers to comunicate via WMS protocol.
| Field Summary | |
|---|---|
protected java.lang.String |
encoding
Encoding used to parse different xml documents. |
protected boolean |
forceLongitudeFirstAxisOrder
|
protected WMTSServiceInformation |
serviceInfo
|
| Fields inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler |
|---|
downloader, host, name, port, version |
| Constructor Summary | |
|---|---|
WMTSProtocolHandler()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
Builds the GetCapabilitiesRequest according to the OGC WMS Specifications without a VERSION, to get the highest version than a WMS supports. |
protected abstract WMTSGetCapabilitiesRequest |
createGetCapabilitiesRequest()
|
protected abstract WMTSGetFeatureInfoRequest |
createGetFeatureInfoRequest(WMTSStatus status,
int x,
int y)
|
protected abstract WMTSGetTileRequest |
createGetTileRequest(WMTSStatus status)
|
java.io.File |
downloadFile(java.net.URL url,
org.gvsig.compat.net.ICancellable cancel)
|
void |
getCapabilities(WMTSServerDescription status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a GetCapabilities request that is sent to the WMS the response will be parse to extract the data needed by the WMS client |
java.lang.String |
getFeatureInfo(WMTSStatus status,
int x,
int y,
org.gvsig.compat.net.ICancellable cancel)
It will send a GetFeatureInfo request to the WMTS Parsing the response and redirecting the info to the WMTS client TODO: return a stored file instead a String. |
OGCServiceInformation |
getServiceInformation()
|
java.io.File |
getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel)
|
java.io.File |
getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel,
java.io.File file)
|
java.net.URL |
getTileURL(WMTSStatus status)
|
protected java.lang.String |
parseException(byte[] data)
|
void |
setForceLongitudeFirstAxisOrder(boolean force)
Sets longitude first in the axis order read from the capabilities file |
protected abstract void |
setServerDescription(WMTSServerDescription status)
Sets the status object |
| Methods inherited from class org.gvsig.remoteclient.ogc.OGCProtocolHandler |
|---|
addOperationByAttribute, fileToBytes, getHost, getName, getPort, getSymbol, getVersion, parseCapabilities, parseHTTPTag, parserDcpType, setHost, setName, setPort, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String encoding
protected WMTSServiceInformation serviceInfo
protected boolean forceLongitudeFirstAxisOrder
| Constructor Detail |
|---|
public WMTSProtocolHandler()
| Method Detail |
|---|
protected abstract WMTSGetFeatureInfoRequest createGetFeatureInfoRequest(WMTSStatus status,
int x,
int y)
protected abstract WMTSGetTileRequest createGetTileRequest(WMTSStatus status)
protected abstract WMTSGetCapabilitiesRequest createGetCapabilitiesRequest()
public void setForceLongitudeFirstAxisOrder(boolean force)
force - protected abstract void setServerDescription(WMTSServerDescription status)
status -
public java.io.File getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel,
java.io.File file)
throws ServerErrorException,
WMTSException
ServerErrorException
WMTSException
public java.io.File getTile(WMTSStatus status,
org.gvsig.compat.net.ICancellable cancel)
throws ServerErrorException,
WMTSException
ServerErrorException
WMTSException
public java.net.URL getTileURL(WMTSStatus status)
throws java.net.MalformedURLException
java.net.MalformedURLException
public java.io.File downloadFile(java.net.URL url,
org.gvsig.compat.net.ICancellable cancel)
throws DownloadException
DownloadException
public java.lang.String getFeatureInfo(WMTSStatus status,
int x,
int y,
org.gvsig.compat.net.ICancellable cancel)
It will send a GetFeatureInfo request to the WMTS Parsing the response and redirecting the info to the WMTS client
TODO: return a stored file instead a String.
public void getCapabilities(WMTSServerDescription status,
boolean override,
org.gvsig.compat.net.ICancellable cancel)
Builds a GetCapabilities request that is sent to the WMS the response will be parse to extract the data needed by the WMS client
override, - if true the previous downloaded data will be overridden
public static java.lang.String buildCapabilitiesSuitableVersionRequest(java.lang.String _host,
java.lang.String _version)
public OGCServiceInformation getServiceInformation()
getServiceInformation in class OGCProtocolHandler
protected java.lang.String parseException(byte[] data)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||