|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAbstractRequest
public abstract class AbstractRequest
A class that provides functionality for performing basic requests
| Field Summary | |
|---|---|
static String |
EXCEPTION_XML
Represents OGC Exception MIME types |
protected URL |
onlineResource
|
protected Properties |
properties
|
| Fields inherited from interface Request |
|---|
REQUEST, SERVICE, VERSION, WMTVER |
| Constructor Summary | |
|---|---|
AbstractRequest(URL onlineResource,
Properties properties)
Creates an AbstractRequest. |
|
| Method Summary | |
|---|---|
URL |
getFinalURL()
Once the properties of the request are configured, this will return the URL that points to the server and contains all of the appropriate name/value parameters. |
String |
getPostContentType()
Default POST content type is xml |
Properties |
getProperties()
|
protected abstract void |
initRequest()
|
protected abstract void |
initService()
Implementing subclass requests must specify their own "SERVICE" value. |
protected abstract void |
initVersion()
Sets up the version number for this request. |
void |
performPostOutput(OutputStream outputStream)
Default to not requiring POST. |
protected String |
processKey(String key)
Some Open Web Servers do not abide by the fact that parameter keys should be case insensitive. |
boolean |
requiresPost()
Default to not requiring POST. |
void |
setProperty(String name,
String value)
Sets the name/value property for this request. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface Request |
|---|
createResponse |
| Field Detail |
|---|
public static final String EXCEPTION_XML
protected URL onlineResource
protected Properties properties
| Constructor Detail |
|---|
public AbstractRequest(URL onlineResource,
Properties properties)
null, it will use them instead of
creating a new Properties object.
This constructor will strip all the query parameters off of
onlineResource and put them in the properties map. This allows clients
to provide their own parameters and have them saved and used along with
the OWS specific ones.
However, certain parameters will be over-written by individual requests
themselves. Examples of such parameters include, but are not limited to:
onlineResource - the URL to construct the Request forproperties - a map of pre-set parameters to be used. Can be null.| Method Detail |
|---|
public URL getFinalURL()
Request
getFinalURL in interface Requestorg.geotools.data.wms.request.Request#getFinalURL()protected String processKey(String key)
key - the key to be processed
public void setProperty(String name,
String value)
Requestvalue according to the
OWS specifications! The code will not do this for you.
Different OWS specifications define different ways to do this. There are
notorious differences between WMS 1.1.1 (section 6.2.1) and
WMS 1.3.0 (section 6.3.2) for example.
If value is null, "name" is removed from the properties table.
setProperty in interface Requestname - the name of the propertyvalue - the value of the propertypublic Properties getProperties()
getProperties in interface Requestprotected abstract void initRequest()
protected abstract void initService()
protected abstract void initVersion()
public String getPostContentType()
getPostContentType in interface Request
public void performPostOutput(OutputStream outputStream)
throws IOException
performPostOutput in interface RequestIOExceptionpublic boolean requiresPost()
requiresPost in interface Request
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||