Class OGCProtocolHandler

java.lang.Object
org.gvsig.remoteclient.ogc.OGCProtocolHandler

public abstract class OGCProtocolHandler extends Object
  • Field Details

    • downloader

      protected static final org.gvsig.compat.net.Downloader downloader
    • name

      protected String name
      procotol handler name
    • version

      protected String version
      protocol handler version
    • host

      protected String host
      host of the WMS to connect
    • port

      protected String port
      port number of the comunication channel of the WMS to connect
  • Constructor Details

    • OGCProtocolHandler

      public OGCProtocolHandler()
  • Method Details

    • getHost

      public String getHost()
      Returns:
      Returns the host.
    • setHost

      public void setHost(String host)
      Parameters:
      host - The host to set.
    • getName

      public String getName()
      Returns:
      Returns the name.
    • setName

      public void setName(String name)
      Parameters:
      name - The name to set.
    • getPort

      public String getPort()
      Returns:
      Returns the port.
    • setPort

      public void setPort(String port)
      Parameters:
      port - The port to set.
    • getVersion

      public String getVersion()
      Returns:
      Returns the version.
    • setVersion

      public void setVersion(String version)
      Parameters:
      version - The version to set.
    • parseCapabilities

      public abstract boolean parseCapabilities(File f)
      parses the data retrieved by the Capabilities XML document
    • getServiceInformation

      public abstract OGCServiceInformation getServiceInformation()
    • getSymbol

      protected static String getSymbol(String h)
      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 KXMLParser
      operation - The WFS operation to parse
      Throws:
      IOException
      org.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 KXMLParser
      operation - The WFS operation to parse
      Throws:
      IOException
      org.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 parser
      operation - The operation to add
      protocol - The parser to add
    • fileToBytes

      protected byte[] fileToBytes(File file) throws IOException
      Copy the file in a byte array
      Parameters:
      file - The file to copy
      Returns:
      An array of bytes
      Throws:
      IOException