org.directwebremoting.io
Class RawData

java.lang.Object
  extended by 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]

Constructor Summary
RawData(InboundVariable inboundVariable, InboundContext inboundContext)
          RawData is immutable.
 
Method Summary
 InboundContext getInboundContext()
           
 InboundVariable getInboundVariable()
           
 java.lang.String toJsonString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 this
inboundVariable - The variable we are delaying marshalling
Method Detail

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

Copyright ¬ 2005