org.springframework.batch.integration.file
Class ResourcePayloadAsJobParameterStrategy

java.lang.Object
  extended by 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
 
Constructor Summary
ResourcePayloadAsJobParameterStrategy()
           
 
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
 

Field Detail

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
Constructor Detail

ResourcePayloadAsJobParameterStrategy

public ResourcePayloadAsJobParameterStrategy()
Method Detail

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.