public abstract class MoaIdTask extends Object implements Task
HttpServletRequest
and HttpServletResponse
.
Note that this abstract task requires the Spring (web) framework including a RequestContextFilter
to be set
within web.xml
.
... <filter> <filter-name>requestContextFilter</filter-name> <filter-class>org.springframework.web.filter.RequestContextFilter</filter-class> </filter> <filter-mapping> <filter-name>requestContextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> ...
Constructor and Description |
---|
MoaIdTask() |
Modifier and Type | Method and Description |
---|---|
abstract void |
execute(ExecutionContext executionContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes the task providing the underlying
ExecutionContext executionContext as well as the
respective HttpServletRequest and HttpServletResponse . |
at.gv.egovernment.moa.id.commons.api.IRequest |
execute(at.gv.egovernment.moa.id.commons.api.IRequest pendingReq,
ExecutionContext executionContext)
Executes this task.
|
protected abstract at.gv.egovernment.moa.id.commons.api.IRequest |
internalExecute(at.gv.egovernment.moa.id.commons.api.IRequest pendingReq,
ExecutionContext executionContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Executes the task providing the underlying
ExecutionContext executionContext
and the IRequest pendingReq as well as the
respective HttpServletRequest and HttpServletResponse . |
public abstract void execute(ExecutionContext executionContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws TaskExecutionException
ExecutionContext
executionContext
as well as the
respective HttpServletRequest
and HttpServletResponse
.executionContext
- The execution context (never null
).request
- The HttpServletRequest (never null
).response
- The HttpServletResponse (never null
).IllegalStateException
- Thrown in case the task is nur being run within the required environment. Refer to javadoc for
further information.Exception
- Thrown in case of error executing the task.TaskExecutionException
protected abstract at.gv.egovernment.moa.id.commons.api.IRequest internalExecute(at.gv.egovernment.moa.id.commons.api.IRequest pendingReq, ExecutionContext executionContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws TaskExecutionException
ExecutionContext
executionContext
and the IRequest
pendingReq
as well as the
respective HttpServletRequest
and HttpServletResponse
.
This method sets the pending-request object of the task implementation and starts the
execute
method of the taskpendingReq
- The pending-request object (never null
).executionContext
- The execution context (never null
).request
- The HttpServletRequest (never null
).response
- The HttpServletResponse (never null
).IllegalStateException
- Thrown in case the task is being run within the required environment. Refer to javadoc for
further information.Exception
- Thrown in case of error executing the task.TaskExecutionException
public at.gv.egovernment.moa.id.commons.api.IRequest execute(at.gv.egovernment.moa.id.commons.api.IRequest pendingReq, ExecutionContext executionContext) throws TaskExecutionException
Task
execute
in interface Task
pendingReq
- Provides the current processed protocol requestexecutionContext
- Provides execution related information.TaskExecutionException
Copyright © 2017. All rights reserved.