org.directwebremoting.io
Class RawData
java.lang.Object
org.directwebremoting.io.RawData
public class RawData
- extends java.lang.Object
Sometimes DWR can't know at runtime the type of the inbound data, this class
allows us to defer conversion until we know more about the type we should
be converting to.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RawData
public RawData(InboundVariable inboundVariable,
InboundContext inboundContext)
- RawData is immutable. Setup the raw string data that we wrap
- Parameters:
inboundContext - The context variables that could be associated with thisinboundVariable - The variable we are delaying marshalling
getInboundContext
public InboundContext getInboundContext()
- Returns:
- The context variables that could be associated with this
getInboundVariable
public InboundVariable getInboundVariable()
- Returns:
- The variable we are delaying marshalling
toJsonString
public java.lang.String toJsonString()
- Returns:
- A JSON approximation of this data
- See Also:
InboundVariable.getJsonValue(org.directwebremoting.extend.InboundVariable.OnJsonParseError)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object