| java.lang.Object org.geotools.data.ows.AbstractRequest
All known Subclasses: org.geotools.data.ows.AbstractGetCapabilitiesRequest, org.geotools.data.wms.request.AbstractWMSRequest,
AbstractRequest | abstract public class AbstractRequest implements Request(Code) | | A class that provides functionality for performing basic requests
author: Richard Gould |
Constructor Summary | |
public | AbstractRequest(URL onlineResource, Properties properties) Creates an AbstractRequest.
If properties isn't 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. |
EXCEPTION_XML | final public static String EXCEPTION_XML(Code) | | Represents OGC Exception MIME types
|
onlineResource | protected URL onlineResource(Code) | | |
AbstractRequest | public AbstractRequest(URL onlineResource, Properties properties)(Code) | | Creates an AbstractRequest.
If properties isn't 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:
- WMTVER
- REQUEST
- VERSION
- SERVICE
Parameters: onlineResource - the URL to construct the Request for Parameters: properties - a map of pre-set parameters to be used. Can be null. |
getFinalURL | public URL getFinalURL()(Code) | | See Also: org.geotools.data.wms.request.Request.getFinalURL |
getPostContentType | public String getPostContentType()(Code) | | Default POST content type is xml
|
getProperties | public Properties getProperties()(Code) | | a copy of this request's properties |
initRequest | abstract protected void initRequest()(Code) | | |
initService | abstract protected void initService()(Code) | | Implementing subclass requests must specify their own "SERVICE" value.
Example: setProperty("SERVICE", "WFS");
|
initVersion | abstract protected void initVersion()(Code) | | Sets up the version number for this request. Typically something like
setProperty("VERSION", "1.1.1");
|
performPostOutput | public void performPostOutput(OutputStream outputStream) throws IOException(Code) | | Default to not requiring POST. Implementors can override if they need to.
|
processKey | protected String processKey(String key)(Code) | | Some Open Web Servers do not abide by the fact that parameter keys should
be case insensitive.
This method will allow a specification to determine the way that the
parameter keys should be encoded in requests made by the server.
Parameters: key - the key to be processed the key, after being processed. (made upper case, for example) |
requiresPost | public boolean requiresPost()(Code) | | Default to not requiring POST. Implementors can override if they need to.
|
|
|