|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.dwrp.BaseCallMarshaller
public abstract class BaseCallMarshaller
A Marshaller that output plain Javascript. This marshaller can be tweaked to output Javascript in an HTML context. This class works in concert with CallScriptConduit, they should be considered closely related and it is important to understand what one does while editing the other.
Constructor Summary | |
---|---|
BaseCallMarshaller()
|
Method Summary | |
---|---|
boolean |
isConvertable(java.lang.Class paramType)
Check if we can coerce the given type |
void |
marshallException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception ex)
Try to find a batchId to send to the client so it knows what broke |
Calls |
marshallInbound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Marshall an incomming HttpRequest into an abstract Calls POJO that defines the functions that we need to call. |
void |
marshallOutbound(Replies replies,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Marshall the return values from executing this batch of requests. |
void |
setAccessControl(AccessControl accessControl)
Accessor for the security manager |
void |
setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
|
void |
setConverterManager(ConverterManager converterManager)
Accessor for the DefaultCreatorManager that we configure |
void |
setCreatorManager(CreatorManager creatorManager)
Accessor for the DefaultCreatorManager that we configure |
void |
setCrossDomainSessionSecurity(boolean crossDomainSessionSecurity)
To we perform cross-domain session security checks? |
void |
setPageNormalizer(PageNormalizer pageNormalizer)
Accessor for the PageNormalizer. |
void |
setSessionCookieName(java.lang.String sessionCookieName)
Alter the session cookie name from the default JSESSIONID. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseCallMarshaller()
Method Detail |
---|
public Calls marshallInbound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, ServerException
Marshaller
marshallInbound
in interface Marshaller
request
- The incoming Http requestresponse
- An Ajax response, XML, JSON, Javascript, etc.
java.io.IOException
- If the connection breaks
ServerException
- If an error occurs during parsingpublic void marshallOutbound(Replies replies, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Marshaller
marshallOutbound
in interface Marshaller
replies
- The objects to convert into a replyrequest
- The incoming Http requestresponse
- An Ajax response, XML, JSON, Javascript, etc.
java.io.IOException
- If the connection breakspublic void marshallException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Exception ex) throws java.io.IOException
Marshaller
marshallException
in interface Marshaller
request
- The incoming Http requestresponse
- An Ajax response, XML, JSON, Javascript, etc.ex
- The exception that we wish to propogate to the client
java.io.IOException
- If writing to the output stream failspublic boolean isConvertable(java.lang.Class paramType)
Marshaller
isConvertable
in interface Marshaller
paramType
- The type to check
paramType
is coercablepublic void setConverterManager(ConverterManager converterManager)
converterManager
- The new DefaultConverterManagerpublic void setCreatorManager(CreatorManager creatorManager)
creatorManager
- The new DefaultConverterManagerpublic void setAccessControl(AccessControl accessControl)
accessControl
- The accessControl to set.public void setPageNormalizer(PageNormalizer pageNormalizer)
pageNormalizer
- The new PageNormalizerpublic void setCrossDomainSessionSecurity(boolean crossDomainSessionSecurity)
crossDomainSessionSecurity
- the cross domain session security settingpublic void setAllowGetForSafariButMakeForgeryEasier(boolean allowGetForSafariButMakeForgeryEasier)
allowGetForSafariButMakeForgeryEasier
- Do we reduce security to help Safaripublic void setSessionCookieName(java.lang.String sessionCookieName)
sessionCookieName
- the sessionCookieName to set
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |