org.gvsig.remoteclient.ogc.request
Class OGCRequest

java.lang.Object
  extended by org.gvsig.remoteclient.ogc.request.OGCRequest
Direct Known Subclasses:
WCSRequest, WFSRequest, WMSRequest, WMTSRequest

public abstract class OGCRequest
extends java.lang.Object


Field Summary
protected  boolean isDeleted
           
protected  OGCProtocolHandler protocolHandler
           
protected  RemoteClientStatus status
           
protected static java.lang.String XMLTAG_ENDCHARACTER
           
protected static java.lang.String XMLTAG_FINISHCHARACTER
           
protected static java.lang.String XMLTAG_STARTCHARACTER
           
 
Constructor Summary
OGCRequest(RemoteClientStatus status, OGCProtocolHandler protocolHandler)
           
 
Method Summary
protected  java.lang.String createXMLEndtTag(java.lang.String tagName)
           
protected  java.lang.String createXMLStartTag(java.lang.String tagName)
           
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 abstract  java.lang.String getSchemaLocation()
           
protected static java.lang.String getSymbol(java.lang.String h)
          Just for not repeat code.
protected abstract  java.lang.String getTempFilePrefix()
           
 java.net.URL getURL()
           
 boolean isDeleted()
           
 java.io.File sendRequest(org.gvsig.compat.net.ICancellable cancel)
          Send a request to the server.
 void setDeleted(boolean isDeleted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isDeleted

protected boolean isDeleted

protocolHandler

protected OGCProtocolHandler protocolHandler

status

protected RemoteClientStatus status

XMLTAG_ENDCHARACTER

protected static final java.lang.String XMLTAG_ENDCHARACTER
See Also:
Constant Field Values

XMLTAG_FINISHCHARACTER

protected static final java.lang.String XMLTAG_FINISHCHARACTER
See Also:
Constant Field Values

XMLTAG_STARTCHARACTER

protected static final java.lang.String XMLTAG_STARTCHARACTER
See Also:
Constant Field Values
Constructor Detail

OGCRequest

public OGCRequest(RemoteClientStatus status,
                  OGCProtocolHandler protocolHandler)
Method Detail

createXMLEndtTag

protected java.lang.String createXMLEndtTag(java.lang.String tagName)

createXMLStartTag

protected java.lang.String createXMLStartTag(java.lang.String tagName)

getHttpGetRequest

protected abstract java.lang.String getHttpGetRequest(java.lang.String onlineResource)

getHttpPostRequest

protected abstract java.lang.String getHttpPostRequest(java.lang.String onlineResource)

getOperationName

protected abstract java.lang.String getOperationName()

getSchemaLocation

protected abstract java.lang.String getSchemaLocation()

getSymbol

protected static java.lang.String getSymbol(java.lang.String h)
Just for not repeat code. Gets the correct separator according to the server URL

Parameters:
h -
Returns:

getTempFilePrefix

protected abstract java.lang.String getTempFilePrefix()

getURL

public java.net.URL getURL()
                    throws java.net.MalformedURLException
Returns:
the URL used in the HTTP get operation
Throws:
java.net.MalformedURLException

isDeleted

public boolean isDeleted()

sendRequest

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

Returns:
The server reply
Throws:
java.io.IOException
java.net.UnknownHostException
java.net.ConnectException

setDeleted

public void setDeleted(boolean isDeleted)


Copyright © 2014 gvSIG Association. All Rights Reserved.