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