public abstract class Request
extends java.lang.Object
Modifier | Constructor and 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.
|
Modifier and Type | Method and 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() |
protected Request()
public Request(Request sourceRequest) throws java.net.URISyntaxException
sourceRequest
- the request to copy.java.lang.IllegalArgumentException
- if copy source is null.java.net.URISyntaxException
- if the web service address is not a valid URI.protected Request(java.net.URI uri) throws java.net.URISyntaxException
uri
- the address of the web service. May be null when this constructor invoked by subclasses.java.net.URISyntaxException
- if the web service address is not a valid URI.protected Request(java.net.URI uri, java.lang.String service) throws java.net.URISyntaxException
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.java.net.URISyntaxException
- if the web service address is not a valid URI.public java.lang.String getParam(java.lang.String key)
public java.lang.String getRequestName()
public java.lang.String getService()
public java.net.URI getUri() throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String getVersion()
protected void initialize(java.lang.String service)
public void setParam(java.lang.String key, java.lang.String value)
public void setService(java.lang.String service)
protected void setUri(java.net.URI uri) throws java.net.URISyntaxException
java.net.URISyntaxException
public void setVersion(java.lang.String version)
public java.lang.String toString()
toString
in class java.lang.Object