public abstract class OGCProtocolHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static Downloader |
downloader |
protected java.lang.String |
host
host of the WMS to connect
|
protected java.lang.String |
name
procotol handler name
|
protected java.lang.String |
port
port number of the comunication channel of the WMS to connect
|
protected java.lang.String |
version
protocol handler version
|
Constructor and Description |
---|
OGCProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOperationByAttribute(KXmlParser parser,
java.lang.String operation,
int protocol)
Add an operation and the online resource
|
protected byte[] |
fileToBytes(java.io.File file)
Copy the file in a byte array
|
java.lang.String |
getHost() |
java.lang.String |
getName() |
java.lang.String |
getPort() |
abstract OGCServiceInformation |
getServiceInformation() |
protected static java.lang.String |
getSymbol(java.lang.String h)
Just for not repeat code.
|
java.lang.String |
getVersion() |
abstract boolean |
parseCapabilities(java.io.File f)
parses the data retrieved by the Capabilities XML document
|
protected void |
parseHTTPTag(KXmlParser parser,
java.lang.String operation)
Parse an operation into a HTTP tag
|
protected void |
parserDcpType(KXmlParser parser,
java.lang.String operation)
Parse an operation into a DcpType tag
|
void |
setHost(java.lang.String host) |
void |
setName(java.lang.String name) |
void |
setPort(java.lang.String port) |
void |
setVersion(java.lang.String version) |
protected static final Downloader downloader
protected java.lang.String name
protected java.lang.String version
protected java.lang.String host
protected java.lang.String port
public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- The host to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getPort()
public void setPort(java.lang.String port)
port
- The port to set.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- The version to set.public abstract boolean parseCapabilities(java.io.File f)
public abstract OGCServiceInformation getServiceInformation()
protected static java.lang.String getSymbol(java.lang.String h)
h
- protected void parserDcpType(KXmlParser parser, java.lang.String operation) throws XmlPullParserException, java.io.IOException
parser
- The KXMLParseroperation
- The WFS operation to parsejava.io.IOException
XmlPullParserException
protected void parseHTTPTag(KXmlParser parser, java.lang.String operation) throws XmlPullParserException, java.io.IOException
parser
- The KXMLParseroperation
- The WFS operation to parsejava.io.IOException
XmlPullParserException
protected void addOperationByAttribute(KXmlParser parser, java.lang.String operation, int protocol)
parser
- The parseroperation
- The operation to addprotocol
- The parser to addprotected byte[] fileToBytes(java.io.File file) throws java.io.IOException
file
- The file to copyjava.io.IOException