Class Request

  • Direct Known Subclasses:
    CapabilitiesRequest

    public abstract class Request
    extends java.lang.Object
    This class provides a means to construct an OGC web service request, such as WMS GetMap or WFS GetCapabilities.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Request()
      Constructs a request for the default service, WMS.
        Request​(Request sourceRequest)
      Copy constructor.
      protected Request​(java.net.URI uri)
      Constructs a request for the default service, WMS, and a specified server.
      protected Request​(java.net.URI uri, java.lang.String service)
      Constructs a request for a specified service at a specified server.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getParam​(java.lang.String key)  
      java.lang.String getRequestName()  
      java.lang.String getService()  
      java.net.URI getUri()  
      java.lang.String getVersion()  
      protected void initialize​(java.lang.String service)  
      void setParam​(java.lang.String key, java.lang.String value)  
      void setService​(java.lang.String service)  
      protected void setUri​(java.net.URI uri)  
      void setVersion​(java.lang.String version)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Request

        protected Request()
        Constructs a request for the default service, WMS.
      • Request

        protected Request​(java.net.URI uri)
                   throws java.net.URISyntaxException
        Constructs a request for the default service, WMS, and a specified server.
        Parameters:
        uri - the address of the web service. May be null when this constructor invoked by subclasses.
        Throws:
        java.net.URISyntaxException - if the web service address is not a valid URI.
      • Request

        protected Request​(java.net.URI uri,
                          java.lang.String service)
                   throws java.net.URISyntaxException
        Constructs a request for a specified service at a specified server.
        Parameters:
        uri - the address of the web service. May be null.
        service - the service name. Common names are WMS, WFS, WCS, etc. May by null when this constructor is invoked by subclasses.
        Throws:
        java.net.URISyntaxException - if the web service address is not a valid URI.
      • Request

        public Request​(Request sourceRequest)
                throws java.net.URISyntaxException
        Copy constructor. Performs a shallow copy.
        Parameters:
        sourceRequest - the request to copy.
        Throws:
        java.lang.IllegalArgumentException - if copy source is null.
        java.net.URISyntaxException - if the web service address is not a valid URI.
    • Method Detail

      • initialize

        protected void initialize​(java.lang.String service)
      • setUri

        protected void setUri​(java.net.URI uri)
                       throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • getRequestName

        public java.lang.String getRequestName()
      • getVersion

        public java.lang.String getVersion()
      • setVersion

        public void setVersion​(java.lang.String version)
      • getService

        public java.lang.String getService()
      • setService

        public void setService​(java.lang.String service)
      • setParam

        public void setParam​(java.lang.String key,
                             java.lang.String value)
      • getParam

        public java.lang.String getParam​(java.lang.String key)
      • getUri

        public java.net.URI getUri()
                            throws java.net.URISyntaxException
        Throws:
        java.net.URISyntaxException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object