net.officefloor.plugin.servlet.route
Class ServletRouteTask

java.lang.Object
  extended by net.officefloor.frame.util.AbstractSingleTask<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>
      extended by net.officefloor.plugin.servlet.route.ServletRouteTask
All Implemented Interfaces:
OfficeAwareWorkFactory<ServletRouteTask>, TaskFactory<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>, WorkFactory<ServletRouteTask>, Task<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>, Work

public class ServletRouteTask
extends AbstractSingleTask<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>
implements OfficeAwareWorkFactory<ServletRouteTask>

Task for routing HttpRequest to be serviced by a Servlet.

Author:
Daniel Sagenschneider

Nested Class Summary
static class ServletRouteTask.DependencyKeys
          Dependency keys.
static class ServletRouteTask.FlowKeys
          Flow keys.
 
Constructor Summary
ServletRouteTask()
           
 
Method Summary
 Object doTask(TaskContext<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys> context)
          Does the task.
 void setOffice(Office office)
          Provides the WorkFactory its containing Office.
 
Methods inherited from class net.officefloor.frame.util.AbstractSingleTask
createTask, createWork, getRecycleManagedObjectParameter, registerAsRecycleTask, registerTask, registerTask, registerTask, registerWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.officefloor.frame.api.build.WorkFactory
createWork
 

Constructor Detail

ServletRouteTask

public ServletRouteTask()
Method Detail

setOffice

public void setOffice(Office office)
Description copied from interface: OfficeAwareWorkFactory
Provides the WorkFactory its containing Office.

Specified by:
setOffice in interface OfficeAwareWorkFactory<ServletRouteTask>
Parameters:
office - Office containing this WorkFactory.

doTask

public Object doTask(TaskContext<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys> context)
              throws Exception
Description copied from interface: Task
Does the task.

Specified by:
doTask in interface Task<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>
Parameters:
context - TaskContext for the Task.
Returns:
Parameter for the next Task. This allows stringing Task instances together into a JobSequence.
Throws:
Exception


Copyright © 2005-2013. All Rights Reserved.