org.gvsig.remoteclient.wmts.request
Class WMTSRequest

java.lang.Object
  extended by org.gvsig.remoteclient.ogc.request.OGCRequest
      extended by org.gvsig.remoteclient.wmts.request.WMTSRequest
Direct Known Subclasses:
WMTSGetCapabilitiesRequest, WMTSGetFeatureInfoRequest, WMTSGetTileRequest

public abstract class WMTSRequest
extends OGCRequest

Base class for a WMTS request

Author:
Nacho Brodin (nachobrodin@gmail.com)

Field Summary
protected static org.gvsig.compat.lang.StringUtils stringUtils
           
 
Fields inherited from class org.gvsig.remoteclient.ogc.request.OGCRequest
isDeleted, protocolHandler, status, XMLTAG_ENDCHARACTER, XMLTAG_FINISHCHARACTER, XMLTAG_STARTCHARACTER
 
Constructor Summary
WMTSRequest(RemoteClientStatus status, WMTSProtocolHandler protocolHandler)
           
 
Method Summary
 void cancelDownload()
           
 void downloadFile(java.net.URL url, java.io.File dstFile, org.gvsig.compat.net.ICancellable cancel)
           
protected  java.lang.String getPartialQuery(WMTSStatus status)
          Gets the part of the OGC request that share GetMap and GetFeatureInfo
protected  java.lang.String getSchemaLocation()
           
 void sendRequest(org.gvsig.compat.net.ICancellable cancel, java.io.File file)
          Send a request to the server.
 
Methods inherited from class org.gvsig.remoteclient.ogc.request.OGCRequest
createXMLEndtTag, createXMLStartTag, getHttpGetRequest, getHttpPostRequest, getOperationName, getSymbol, getTempFilePrefix, getURL, isDeleted, sendRequest, setDeleted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringUtils

protected static final org.gvsig.compat.lang.StringUtils stringUtils
Constructor Detail

WMTSRequest

public WMTSRequest(RemoteClientStatus status,
                   WMTSProtocolHandler protocolHandler)
Method Detail

getSchemaLocation

protected java.lang.String getSchemaLocation()
Specified by:
getSchemaLocation in class OGCRequest

getPartialQuery

protected java.lang.String getPartialQuery(WMTSStatus status)
Gets the part of the OGC request that share GetMap and GetFeatureInfo

Returns:
String request

sendRequest

public void sendRequest(org.gvsig.compat.net.ICancellable cancel,
                        java.io.File file)
                 throws java.net.ConnectException,
                        java.net.UnknownHostException,
                        java.io.IOException
Send a request to the server.

Throws:
java.io.IOException
java.net.UnknownHostException
java.net.ConnectException

cancelDownload

public void cancelDownload()

downloadFile

public void downloadFile(java.net.URL url,
                         java.io.File dstFile,
                         org.gvsig.compat.net.ICancellable cancel)
                  throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004-2013 gvSIG. All Rights Reserved.