org.n52.wps.server.request
Class RetrieveResultRequest

java.lang.Object
  extended by org.n52.wps.server.request.Request
      extended by org.n52.wps.server.request.RetrieveResultRequest
All Implemented Interfaces:
java.util.concurrent.Callable<Response>

public class RetrieveResultRequest
extends Request

If the server is too busy or the computation is too long, the client can retrieve the result at a later time. This class represents a Request to obtain the result. The respons might be the result, be also could contain a message that the result is not available yet.


Field Summary
 
Fields inherited from class org.n52.wps.server.request.Request
doc, id, LOGGER, map, SUPPORTED_VERSION
 
Constructor Summary
RetrieveResultRequest(org.apache.commons.collections.map.CaseInsensitiveMap ciMap)
          Create a Request based on a CaseInsensitiveMap as input (HTTP GET)
 
Method Summary
 Response call()
          Actually serves the Request.
 java.lang.Object getAttachedResult()
           
 boolean validate()
          Validates the client input
 
Methods inherited from class org.n52.wps.server.request.Request
accumulateString, getDocument, getMap, getMapArray, getMapArray, getMapValue, getMapValue, getRequestedVersions, getUniqueId, requireVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetrieveResultRequest

public RetrieveResultRequest(org.apache.commons.collections.map.CaseInsensitiveMap ciMap)
                      throws ExceptionReport
Create a Request based on a CaseInsensitiveMap as input (HTTP GET)

Parameters:
ciMap - The Map which holds the client input.
Throws:
ExceptionReport
Method Detail

call

public Response call()
              throws ExceptionReport
Actually serves the Request.

Specified by:
call in interface java.util.concurrent.Callable<Response>
Specified by:
call in class Request
Returns:
A Reponse to the client Request
Throws:
ExceptionReport
See Also:
Callable.call()

validate

public boolean validate()
                 throws ExceptionReport
Validates the client input

Specified by:
validate in class Request
Returns:
True if the input is valid, False otherwise
Throws:
ExceptionReport

getAttachedResult

public java.lang.Object getAttachedResult()
                                   throws java.lang.NullPointerException
Specified by:
getAttachedResult in class Request
Throws:
java.lang.NullPointerException


Copyright © 2007-2011 52north.org. All Rights Reserved.