org.springframework.batch.integration.file
Class ResourcePayloadAsJobParameterStrategy
java.lang.Object
org.springframework.batch.integration.file.ResourcePayloadAsJobParameterStrategy
- All Implemented Interfaces:
- MessageToJobParametersStrategy
public class ResourcePayloadAsJobParameterStrategy
- extends Object
- implements MessageToJobParametersStrategy
- Author:
- Dave Syer
Field Summary |
static String |
FILE_INPUT_PATH
The key name for the job parameter that will be a URL for the input file |
Method Summary |
JobParameters |
getJobParameters(org.springframework.integration.message.Message<?> message)
Convert a message payload which is a Resource to its URL
representation and load that into a job parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_INPUT_PATH
public static final String FILE_INPUT_PATH
- The key name for the job parameter that will be a URL for the input file
- See Also:
- Constant Field Values
ResourcePayloadAsJobParameterStrategy
public ResourcePayloadAsJobParameterStrategy()
getJobParameters
public JobParameters getJobParameters(org.springframework.integration.message.Message<?> message)
- Convert a message payload which is a
Resource
to its URL
representation and load that into a job parameter.
- Specified by:
getJobParameters
in interface MessageToJobParametersStrategy
- See Also:
MessageToJobParametersStrategy.getJobParameters(org.springframework.integration.message.Message)
Copyright © 2009 SpringSource. All Rights Reserved.