fr.cnes.sitools.common.task
Class RequestDispatcherTask

java.lang.Object
  extended by fr.cnes.sitools.common.task.RequestDispatcherTask
All Implemented Interfaces:
java.lang.Runnable

public class RequestDispatcherTask
extends java.lang.Object
implements java.lang.Runnable

Task to dispatch a pre-build request in asynchronous mode. Requests must have all ChallengeResponse set. Initially created to meet the needs of mailing

Author:
jp.boignard (AKKA Technologies)

Constructor Summary
RequestDispatcherTask(org.restlet.Context context, org.restlet.Request taskRequest)
          Constructor
 
Method Summary
 org.restlet.Context getContext()
          Get the Restlet context to reach ClientDispatcher
 org.restlet.Request getRequest()
          Get the request to dispatch
 Response getTaskResponse()
          Final Response.
 void run()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestDispatcherTask

public RequestDispatcherTask(org.restlet.Context context,
                             org.restlet.Request taskRequest)
Constructor

Parameters:
context - Context parent request to reach ClientDispatcher
taskRequest - pre-built Request
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

getRequest

public org.restlet.Request getRequest()
Get the request to dispatch

Returns:
Request

getContext

public org.restlet.Context getContext()
Get the Restlet context to reach ClientDispatcher

Returns:
Context

getTaskResponse

public Response getTaskResponse()
Final Response.

Returns:
Sitools Response when task finished


Copyright © 2010-2013 CNES. All Rights Reserved.