org.n52.wps.server.request
Class RetrieveResultRequest
java.lang.Object
org.n52.wps.server.request.Request
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.
|
Constructor Summary |
RetrieveResultRequest(org.apache.commons.collections.map.CaseInsensitiveMap ciMap)
Create a Request based on a CaseInsensitiveMap as input (HTTP GET) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.