NASA World Wind

gov.nasa.worldwind.wms
Class Request

java.lang.Object
  extended by gov.nasa.worldwind.wms.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
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
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Request

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


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.

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.
Method Detail

getParam

public java.lang.String getParam(java.lang.String key)

getRequestName

public java.lang.String getRequestName()

getService

public java.lang.String getService()

getUri

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

getVersion

public java.lang.String getVersion()

initialize

protected void initialize(java.lang.String service)

setParam

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

setService

public void setService(java.lang.String service)

setUri

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

setVersion

public void setVersion(java.lang.String version)

toString

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

NASA World Wind