public class HttpTemplateInitialTask extends AbstractSingleTask<HttpTemplateInitialTask,HttpTemplateInitialTask.Dependencies,HttpTemplateInitialTask.Flows>
Task
to ensure appropriate conditions for rendering the
HttpTemplate
.Modifier and Type | Class and Description |
---|---|
static class |
HttpTemplateInitialTask.Dependencies
Keys for the
HttpTemplateInitialTask dependencies. |
static class |
HttpTemplateInitialTask.Flows
Keys for the
HttpTemplateInitialTask flows. |
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_RENDER_REDIRECT_HTTP_METHODS
Default HTTP methods to redirect before rendering the
HttpTemplate . |
Constructor and Description |
---|
HttpTemplateInitialTask(String templateUriPath,
boolean isRequireSecure,
String[] renderRedirectHttpMethods,
String contentType,
Charset charset)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
Object |
doTask(TaskContext<HttpTemplateInitialTask,HttpTemplateInitialTask.Dependencies,HttpTemplateInitialTask.Flows> context)
Does the task.
|
createTask, createWork, getRecycleManagedObjectParameter, registerAsRecycleTask, registerTask, registerTask, registerTask, registerWork
public static final String[] DEFAULT_RENDER_REDIRECT_HTTP_METHODS
HttpTemplate
.public HttpTemplateInitialTask(String templateUriPath, boolean isRequireSecure, String[] renderRedirectHttpMethods, String contentType, Charset charset)
templateUriPath
- URI path for the HttpTemplate
.isRequireSecure
- Indicates if a secure ServerHttpConnection
is
required.renderRedirectHttpMethods
- Listing of HTTP methods that require a redirect before
rendering the HttpTemplate
.contentType
- Content-type for the HttpTemplate
. May be
null
.charset
- Charset
for HttpTemplate
.public Object doTask(TaskContext<HttpTemplateInitialTask,HttpTemplateInitialTask.Dependencies,HttpTemplateInitialTask.Flows> context) throws IOException
Task
context
- TaskContext
for the Task
.Task
. This allows stringing
Task
instances together into a JobSequence
.IOException
Copyright © 2005–2016. All rights reserved.