|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutputType
This interface provides an abstraction for different locations for storing output from a handler. Implementations may store values in Session, request attributes, databases, etc.
Method Summary | |
---|---|
java.lang.Object |
getValue(HandlerContext context,
IODescriptor outDesc,
java.lang.String key)
This method is responsible for retrieving the value of the Output from the destination that was specified by handler. |
void |
setValue(HandlerContext context,
IODescriptor outDesc,
java.lang.String key,
java.lang.Object value)
This method is responsible for setting the value of the Output to the destination that was specified by handler. |
Method Detail |
---|
java.lang.Object getValue(HandlerContext context, IODescriptor outDesc, java.lang.String key)
This method is responsible for retrieving the value of the Output from the destination that was specified by handler. 'key' may be null. In cases where it is not needed, it can be ignored. If it is needed, the implementation may either provide a default or throw an exception.
context
- The HandlerContextoutDesc
- The IODescriptor for this Output value in
which to obtain the valuekey
- The optional 'key' to use when retrieving the
value from the OutputType
void setValue(HandlerContext context, IODescriptor outDesc, java.lang.String key, java.lang.Object value)
This method is responsible for setting the value of the Output to the destination that was specified by handler. 'key' may be null. In cases where it is not needed, it can be ignored. If it is needed, the implementation may either provide a default or throw an exception.
context
- The HandlerContextoutDesc
- The IODescriptor for this Output value in
which to obtain the valuekey
- The optional 'key' to use when setting the
value from the OutputTypevalue
- The value to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |