net.officefloor.plugin.servlet.route
Class ServletRouteTask
java.lang.Object
net.officefloor.frame.util.AbstractSingleTask<ServletRouteTask,ServletRouteTask.DependencyKeys,ServletRouteTask.FlowKeys>
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletRouteTask
public ServletRouteTask()
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.