public abstract class WMTSRequest
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isDeleted |
protected WMTSProtocolHandler |
protocolHandler |
protected WMTSStatusImpl |
status |
protected static StringUtils |
stringUtils |
protected static java.lang.String |
XMLTAG_ENDCHARACTER |
protected static java.lang.String |
XMLTAG_FINISHCHARACTER |
protected static java.lang.String |
XMLTAG_STARTCHARACTER |
Constructor and Description |
---|
WMTSRequest(WMTSStatusImpl status,
WMTSProtocolHandler protocolHandler) |
Modifier and Type | Method and Description |
---|---|
void |
cancelDownload() |
protected java.lang.String |
createXMLEndtTag(java.lang.String tagName) |
protected java.lang.String |
createXMLStartTag(java.lang.String tagName) |
void |
downloadFile(java.net.URL url,
java.io.File dstFile,
ICancellable cancel) |
protected abstract java.lang.String |
getHttpGetRequest(java.lang.String onlineResource) |
protected abstract java.lang.String |
getHttpPostRequest(java.lang.String onlineResource) |
protected abstract java.lang.String |
getOperationName() |
protected java.lang.String |
getPartialQuery(WMTSStatusImpl status)
Gets the part of the OGC request that share GetMap and GetFeatureInfo
|
protected java.lang.String |
getSchemaLocation() |
protected abstract java.lang.String |
getTempFilePrefix() |
java.net.URL |
getURL() |
boolean |
isDeleted() |
java.io.File |
sendRequest(ICancellable cancel)
Send a request to the server.
|
void |
sendRequest(ICancellable cancel,
java.io.File file)
Send a request to the server.
|
void |
setDeleted(boolean isDeleted) |
protected static final StringUtils stringUtils
protected WMTSStatusImpl status
protected WMTSProtocolHandler protocolHandler
protected boolean isDeleted
protected static final java.lang.String XMLTAG_STARTCHARACTER
protected static final java.lang.String XMLTAG_FINISHCHARACTER
protected static final java.lang.String XMLTAG_ENDCHARACTER
public WMTSRequest(WMTSStatusImpl status, WMTSProtocolHandler protocolHandler)
protected abstract java.lang.String getHttpGetRequest(java.lang.String onlineResource)
protected abstract java.lang.String getHttpPostRequest(java.lang.String onlineResource)
protected abstract java.lang.String getTempFilePrefix()
protected abstract java.lang.String getOperationName()
public java.net.URL getURL() throws java.net.MalformedURLException
java.net.MalformedURLException
protected java.lang.String getSchemaLocation()
protected java.lang.String getPartialQuery(WMTSStatusImpl status)
public void sendRequest(ICancellable cancel, java.io.File file) throws java.net.ConnectException, java.net.UnknownHostException, java.io.IOException
java.io.IOException
java.net.UnknownHostException
java.net.ConnectException
public java.io.File sendRequest(ICancellable cancel) throws java.net.ConnectException, java.net.UnknownHostException, java.io.IOException
java.io.IOException
java.net.UnknownHostException
java.net.ConnectException
public void cancelDownload()
public void downloadFile(java.net.URL url, java.io.File dstFile, ICancellable cancel) throws java.io.IOException
java.io.IOException
public boolean isDeleted()
public void setDeleted(boolean isDeleted)
protected java.lang.String createXMLStartTag(java.lang.String tagName)
protected java.lang.String createXMLEndtTag(java.lang.String tagName)