Package gov.nasa.worldwind.wms
Class Request
- java.lang.Object
-
- gov.nasa.worldwind.wms.Request
-
- Direct Known Subclasses:
CapabilitiesRequest
public abstract class Request extends java.lang.ObjectThis class provides a means to construct an OGC web service request, such as WMS GetMap or WFS GetCapabilities.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRequest()Constructs a request for the default service, WMS.Request(Request sourceRequest)Copy constructor.protectedRequest(java.net.URI uri)Constructs a request for the default service, WMS, and a specified server.protectedRequest(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.StringgetParam(java.lang.String key)java.lang.StringgetRequestName()java.lang.StringgetService()java.net.URIgetUri()java.lang.StringgetVersion()protected voidinitialize(java.lang.String service)voidsetParam(java.lang.String key, java.lang.String value)voidsetService(java.lang.String service)protected voidsetUri(java.net.URI uri)voidsetVersion(java.lang.String version)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Request
protected Request()
Constructs a request for the default service, WMS.
-
Request
protected Request(java.net.URI uri) throws java.net.URISyntaxExceptionConstructs 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.URISyntaxExceptionConstructs 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:
toStringin classjava.lang.Object
-
-