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