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