Package org.gvsig.remoteclient.ogc
Class OGCProtocolHandler
java.lang.Object
org.gvsig.remoteclient.ogc.OGCProtocolHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddOperationByAttribute(org.kxml2.io.KXmlParser parser, String operation, int protocol) Add an operation and the online resourceprotected byte[]fileToBytes(File file) Copy the file in a byte arraygetHost()getName()getPort()abstract OGCServiceInformationprotected static StringJust for not repeat code.abstract booleanparses the data retrieved by the Capabilities XML documentprotected voidparseHTTPTag(org.kxml2.io.KXmlParser parser, String operation) Parse an operation into a HTTP tagprotected voidparserDcpType(org.kxml2.io.KXmlParser parser, String operation) Parse an operation into a DcpType tagvoidvoidvoidvoidsetVersion(String version)
-
Field Details
-
downloader
protected static final org.gvsig.compat.net.Downloader downloader -
name
procotol handler name -
version
protocol handler version -
host
host of the WMS to connect -
port
port number of the comunication channel of the WMS to connect
-
-
Constructor Details
-
OGCProtocolHandler
public OGCProtocolHandler()
-
-
Method Details
-
getHost
- Returns:
- Returns the host.
-
setHost
- Parameters:
host- The host to set.
-
getName
- Returns:
- Returns the name.
-
setName
- Parameters:
name- The name to set.
-
getPort
- Returns:
- Returns the port.
-
setPort
- Parameters:
port- The port to set.
-
getVersion
- Returns:
- Returns the version.
-
setVersion
- Parameters:
version- The version to set.
-
parseCapabilities
parses the data retrieved by the Capabilities XML document -
getServiceInformation
-
getSymbol
Just for not repeat code. Gets the correct separator according to the server URL- Parameters:
h-- Returns:
-
parserDcpType
protected void parserDcpType(org.kxml2.io.KXmlParser parser, String operation) throws org.xmlpull.v1.XmlPullParserException, IOException Parse an operation into a DcpType tag- Parameters:
parser- The KXMLParseroperation- The WFS operation to parse- Throws:
IOExceptionorg.xmlpull.v1.XmlPullParserException
-
parseHTTPTag
protected void parseHTTPTag(org.kxml2.io.KXmlParser parser, String operation) throws org.xmlpull.v1.XmlPullParserException, IOException Parse an operation into a HTTP tag- Parameters:
parser- The KXMLParseroperation- The WFS operation to parse- Throws:
IOExceptionorg.xmlpull.v1.XmlPullParserException
-
addOperationByAttribute
protected void addOperationByAttribute(org.kxml2.io.KXmlParser parser, String operation, int protocol) Add an operation and the online resource- Parameters:
parser- The parseroperation- The operation to addprotocol- The parser to add
-
fileToBytes
Copy the file in a byte array- Parameters:
file- The file to copy- Returns:
- An array of bytes
- Throws:
IOException
-