| java.lang.Object org.directwebremoting.extend.OutboundContext
OutboundContext | final public class OutboundContext (Code) | | We need to keep track of stuff while we are converting on the way out to
prevent recursion.
This class helps track the conversion process.
author: Joe Walker [joe at getahead dot ltd dot uk] |
OutboundContext | public OutboundContext(boolean jsonMode)(Code) | | Contexts need to know if they are producing JSON output
Parameters: jsonMode - Are we producing JSON output? |
get | public OutboundVariable get(Object object)(Code) | | Have we already converted an object?
Parameters: object - The object to check How it was converted last time or null if we've not seen it before |
getNextVariableName | public String getNextVariableName()(Code) | | Create a new variable name to keep everything we declare separate
A new unique variable name |
isJsonMode | public boolean isJsonMode()(Code) | | Are we in JSON mode where everything is inline? |
prepareForOutput | public void prepareForOutput()(Code) | | Things work out if they are doubly referenced during the conversion
process, and can't be sure how to create output until that phase is done.
This method declares that we are done conversion, and now is a good time
to calculate how to generate output
|
put | public void put(Object object, OutboundVariable ss)(Code) | | Parameters: object - We have converted a new object, remember it Parameters: ss - How the object was converted |
|
|