|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RequestElementFactory
The factory for the elements of a processing request. A RequestElementFactory allows a particular
processor implementation to influence the process of generating request elements with a RequestLoader.
RequestLoader,
Request| Method Summary | |
|---|---|
Parameter |
createDefaultInputProductParameter()
Creates a parameter for the default input product path - which is the current user's home directory. |
Parameter |
createDefaultLogPatternParameter(String prefix)
Creates a default logging pattern parameter set to the prefix passed in. |
Parameter |
createDefaultOutputProductParameter()
Creates an output product parameter set to the default path. |
ProductRef |
createInputProductRef(File file,
String fileFormat,
String typeId)
Creates a new reference to an input product for the current processing request. |
Parameter |
createLogToOutputParameter(String value)
Creates a logging to output product parameter set to true. |
ProductRef |
createOutputProductRef(File file,
String fileFormat,
String typeId)
Creates a new reference to an output product for the current processing request. |
Parameter |
createParameter(String name,
String value)
Creates a new processing parameter for the current processing request. |
| Method Detail |
|---|
ProductRef createInputProductRef(File file,
String fileFormat,
String typeId)
throws RequestElementFactoryException
file - the input product's file, must not be nullfileFormat - the file format, can be null if not knowntypeId - the product type identifier, can be null if not known
IllegalArgumentException - if url is null
RequestElementFactoryException - if the element could not be created
ProductRef createOutputProductRef(File file,
String fileFormat,
String typeId)
throws RequestElementFactoryException
file - the output product's file, must not be nullfileFormat - the file format, can be null if not knowntypeId - the product type identifier, can be null if not known
IllegalArgumentException - if url is null
RequestElementFactoryException - if the element could not be created
Parameter createParameter(String name,
String value)
throws RequestElementFactoryException
name - the parameter name, must not be null or emptyvalue - the parameter value, can be null if yet not known
IllegalArgumentException - if name is null or empty
RequestElementFactoryException - if the parameter could not be created or is invalidParameter createDefaultInputProductParameter()
Parameter createDefaultOutputProductParameter()
Parameter createDefaultLogPatternParameter(String prefix)
prefix - the default setting for the logging pattern
Parameter createLogToOutputParameter(String value)
throws ParamValidateException
ParamValidateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||