org.geotools.data.wps
Class WPS1_0_0.GetCapsRequest

java.lang.Object
  extended by org.geotools.data.ows.AbstractRequest
      extended by org.geotools.data.ows.AbstractGetCapabilitiesRequest
          extended by org.geotools.data.wps.WPS1_0_0.GetCapsRequest
All Implemented Interfaces:
GetCapabilitiesRequest, Request
Enclosing class:
WPS1_0_0

public static class WPS1_0_0.GetCapsRequest
extends AbstractGetCapabilitiesRequest

We need a custom request object.


Field Summary
 
Fields inherited from class org.geotools.data.ows.AbstractGetCapabilitiesRequest
SERVICE
 
Fields inherited from class org.geotools.data.ows.AbstractRequest
EXCEPTION_XML, onlineResource, properties
 
Fields inherited from interface org.geotools.data.ows.GetCapabilitiesRequest
GET_CAPABILITIES, SECTION_ALL, SECTION_COMMON, SECTION_CONTENT, SECTION_OPERATIONS, SECTION_SERVICE
 
Fields inherited from interface org.geotools.data.ows.Request
REQUEST, VERSION, WMTVER
 
Constructor Summary
WPS1_0_0.GetCapsRequest(java.net.URL urlGetCapabilities)
          Construct a Request compatible with a 1.0.0 Web Process Server.
 
Method Summary
 Response createResponse(java.lang.String contentType, java.io.InputStream inputStream)
          Each Request must know how to create it's counterpart Response.
protected  void initRequest()
          Sets the REQUEST parameter
protected  void initService()
          Implementing subclass requests must specify their own "SERVICE" value.
protected  void initVersion()
          Sets up the version number for this request.
protected  java.lang.String processKey(java.lang.String key)
          Some Open Web Servers do not abide by the fact that parameter keys should be case insensitive.
 
Methods inherited from class org.geotools.data.ows.AbstractRequest
getFinalURL, getPostContentType, getProperties, performPostOutput, requiresPost, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.geotools.data.ows.Request
getFinalURL, getPostContentType, getProperties, performPostOutput, requiresPost, setProperty
 

Constructor Detail

WPS1_0_0.GetCapsRequest

public WPS1_0_0.GetCapsRequest(java.net.URL urlGetCapabilities)
Construct a Request compatible with a 1.0.0 Web Process Server.

Parameters:
urlGetCapabilities - URL of GetCapabilities document.
Method Detail

initVersion

protected void initVersion()
Description copied from class: AbstractRequest
Sets up the version number for this request. Typically something like setProperty("VERSION", "1.1.1");

Specified by:
initVersion in class AbstractRequest

initRequest

protected void initRequest()
Description copied from class: AbstractGetCapabilitiesRequest
Sets the REQUEST parameter

Subclass can override if needed.

Overrides:
initRequest in class AbstractGetCapabilitiesRequest

initService

protected void initService()
Description copied from class: AbstractRequest
Implementing subclass requests must specify their own "SERVICE" value. Example: setProperty("SERVICE", "WFS");

Specified by:
initService in class AbstractRequest

processKey

protected java.lang.String processKey(java.lang.String key)
Description copied from class: AbstractRequest
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.

Overrides:
processKey in class AbstractRequest
Parameters:
key - the key to be processed
Returns:
the key, after being processed. (made upper case, for example)

createResponse

public Response createResponse(java.lang.String contentType,
                               java.io.InputStream inputStream)
                        throws ServiceException,
                               java.io.IOException
Description copied from interface: Request
Each Request must know how to create it's counterpart Response. Given the content type and input stream (containin the response data), this method must return an appropriate Response object.

Parameters:
contentType - the MIME type of the data in the inputStream
inputStream - contains the data from the response
Throws:
ServiceException
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.