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

status

protected RemoteClientStatus status

protocolHandler

protected OGCProtocolHandler protocolHandler

isDeleted

protected boolean isDeleted

XMLTAG_STARTCHARACTER

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

XMLTAG_FINISHCHARACTER

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

XMLTAG_ENDCHARACTER

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

OGCRequest

public OGCRequest(RemoteClientStatus status,
                  OGCProtocolHandler protocolHandler)
Method Detail

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

getHttpGetRequest

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

getHttpPostRequest

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

getTempFilePrefix

protected abstract java.lang.String getTempFilePrefix()

getOperationName

protected abstract java.lang.String getOperationName()

getSchemaLocation

protected abstract java.lang.String getSchemaLocation()

getURL

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

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:

isDeleted

public boolean isDeleted()

setDeleted

public void setDeleted(boolean isDeleted)

createXMLStartTag

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

createXMLEndtTag

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


Copyright © 2004-2013 gvSIG. All Rights Reserved.