| org.directwebremoting.extend.Marshaller
All known Subclasses: org.directwebremoting.dwrp.BaseCallMarshaller,
Marshaller | public interface Marshaller (Code) | | 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.
author: Joe Walker [joe at getahead dot ltd dot uk] |
isConvertable | boolean isConvertable(Class> paramType)(Code) | | Check if we can coerce the given type
Parameters: paramType - The type to check true iff paramType is coercable |
marshallException | void marshallException(HttpServletRequest request, HttpServletResponse response, Exception ex) throws IOException(Code) | | Try to find a batchId to send to the client so it knows what broke
Parameters: request - The incoming Http request Parameters: response - An Ajax response, XML, JSON, Javascript, etc. Parameters: ex - The exception that we wish to propogate to the client throws: IOException - If writing to the output stream fails |
marshallInbound | Calls marshallInbound(HttpServletRequest request, HttpServletResponse response) throws IOException, ServerException(Code) | | Marshall an incomming HttpRequest into an abstract Calls POJO that
defines the functions that we need to call.
Parameters: request - The incoming Http request Parameters: response - An Ajax response, XML, JSON, Javascript, etc. Data specifying the methods to call throws: IOException - If the connection breaks throws: ServerException - If an error occurs during parsing |
marshallOutbound | void marshallOutbound(Replies replies, HttpServletRequest request, HttpServletResponse response) throws IOException(Code) | | Marshall the return values from executing this batch of requests.
Parameters: replies - The objects to convert into a reply Parameters: request - The incoming Http request Parameters: response - An Ajax response, XML, JSON, Javascript, etc. throws: IOException - If the connection breaks |
|
|