gov.nasa.worldwind.wms
Class Request
java.lang.Object
gov.nasa.worldwind.wms.Request
- Direct Known Subclasses:
- CapabilitiesRequest
public abstract class Request - extends 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(URI uri)
Constructs a request for the default service, WMS, and a specified server. |
protected |
Request(URI uri,
String service)
Constructs a request for a specified service at a specified server. |
Request
protected Request()
- Constructs a request for the default service, WMS.
Request
public Request(Request sourceRequest)
throws URISyntaxException
- Copy constructor. Performs a shallow copy.
- Parameters:
sourceRequest - the request to copy.
- Throws:
IllegalArgumentException - if copy source is null.
URISyntaxException - if the web service address is not a valid URI.
Request
protected Request(URI uri)
throws 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:
URISyntaxException - if the web service address is not a valid URI.
Request
protected Request(URI uri,
String service)
throws 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:
URISyntaxException - if the web service address is not a valid URI.
getParam
public String getParam(String key)
getRequestName
public String getRequestName()
getService
public String getService()
getUri
public URI getUri()
throws URISyntaxException
- Throws:
URISyntaxException
getVersion
public String getVersion()
initialize
protected void initialize(String service)
setParam
public void setParam(String key,
String value)
setService
public void setService(String service)
setUri
protected void setUri(URI uri)
throws URISyntaxException
- Throws:
URISyntaxException
setVersion
public void setVersion(String version)
toString
public String toString()
- Overrides:
toString in class Object
|
|