org.directwebremoting.io
Class StringWrapper
java.lang.Object
org.directwebremoting.io.StringWrapper
public class StringWrapper
- extends java.lang.Object
A wrapper around a String to distinguish a string entered into a
ScriptBuffer as code and a string entered as
data.
The difference comes down to escaping rules: A string passed as data must
be escaped. A script passed as code must not be escaped. It is very unlikely
that this class will be of any use to users of DWR, however it is used by
ScriptBuffer, and DWR's security rules forbid conversion of DWR defined
objects unless they are in this package.
|
Constructor Summary |
StringWrapper(java.lang.String data)
All StringWrappers must have a string to wrap |
|
Method Summary |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringWrapper
public StringWrapper(java.lang.String data)
- All StringWrappers must have a string to wrap
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object