org.directwebremoting.dwrp
Class HtmlCallMarshaller
java.lang.Object
org.directwebremoting.dwrp.BaseCallMarshaller
org.directwebremoting.dwrp.HtmlCallMarshaller
- All Implemented Interfaces:
- Marshaller
public class HtmlCallMarshaller
- extends BaseCallMarshaller
A version of the Plain Javascript Marshaller that uses iframe syntax
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
Method Summary |
protected java.lang.String |
getOutboundMimeType()
What mime type should we send to the browser for this data? |
protected void |
sendOutboundScriptPrefix(java.io.PrintWriter out,
java.lang.String batchId)
iframe mode starts as HTML, so get into script mode |
protected void |
sendOutboundScriptSuffix(java.io.PrintWriter out,
java.lang.String batchId)
iframe mode needs to get out of script mode |
protected void |
sendScript(java.io.PrintWriter out,
java.lang.String script)
Send a script to the browser |
Methods inherited from class org.directwebremoting.dwrp.BaseCallMarshaller |
isConvertable, marshallException, marshallInbound, marshallOutbound, setAccessControl, setAllowGetForSafariButMakeForgeryEasier, setConverterManager, setCreatorManager, setCrossDomainSessionSecurity, setPageNormalizer, setSessionCookieName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlCallMarshaller
public HtmlCallMarshaller()
getOutboundMimeType
protected java.lang.String getOutboundMimeType()
- Description copied from class:
BaseCallMarshaller
- What mime type should we send to the browser for this data?
- Specified by:
getOutboundMimeType
in class BaseCallMarshaller
- Returns:
- A mime-type
sendOutboundScriptPrefix
protected void sendOutboundScriptPrefix(java.io.PrintWriter out,
java.lang.String batchId)
throws java.io.IOException
- Description copied from class:
BaseCallMarshaller
- iframe mode starts as HTML, so get into script mode
- Specified by:
sendOutboundScriptPrefix
in class BaseCallMarshaller
- Parameters:
out
- The stream to write tobatchId
- The batch identifier so we can prepare the environment
- Throws:
java.io.IOException
- If the write fails
sendOutboundScriptSuffix
protected void sendOutboundScriptSuffix(java.io.PrintWriter out,
java.lang.String batchId)
throws java.io.IOException
- Description copied from class:
BaseCallMarshaller
- iframe mode needs to get out of script mode
- Specified by:
sendOutboundScriptSuffix
in class BaseCallMarshaller
- Parameters:
out
- The stream to write tobatchId
- The batch identifier so we can prepare the environment
- Throws:
java.io.IOException
- If the write fails
sendScript
protected void sendScript(java.io.PrintWriter out,
java.lang.String script)
throws java.io.IOException
- Description copied from class:
BaseCallMarshaller
- Send a script to the browser
- Specified by:
sendScript
in class BaseCallMarshaller
- Parameters:
out
- The stream to write toscript
- The script to send
- Throws:
java.io.IOException
- If the write fails