|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Marshaller
A Marshaller is responsible for all the on-the-wire communication between DWR on the server and the HTTP channel. engine.js does the corresponding work on the Javascript side.
Method Summary | |
---|---|
boolean |
isConvertable(java.lang.Class paramType)
Check if we can coerce the given type |
void |
marshallException(HttpServletRequest request,
HttpServletResponse response,
java.lang.Exception ex)
Try to find a batchId to send to the client so it knows what broke |
Calls |
marshallInbound(HttpServletRequest request,
HttpServletResponse response)
Marshall an incomming HttpRequest into an abstract Calls POJO that defines the functions that we need to call. |
void |
marshallOutbound(Replies replies,
HttpServletRequest request,
HttpServletResponse response)
Marshall the return values from executing this batch of requests. |
Method Detail |
---|
Calls marshallInbound(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServerException
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 parsingvoid marshallOutbound(Replies replies, HttpServletRequest request, HttpServletResponse response) throws java.io.IOException
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 breaksvoid marshallException(HttpServletRequest request, HttpServletResponse response, java.lang.Exception ex) throws java.io.IOException
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 failsboolean isConvertable(java.lang.Class paramType)
paramType
- The type to check
paramType
is coercable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |