public abstract class DispatchJsonServlet extends DispatchServlet
DispatchServlet which is uses json to serialize/deserialize requests and responses.ServiceProxyWebJson,
ServiceProxyLocal,
ServiceRequest,
ServiceResponse,
Serialized Form| Constructor and Description |
|---|
DispatchJsonServlet() |
| Modifier and Type | Method and Description |
|---|---|
ServiceRequest |
getServiceRequest(HttpServletRequest request)
Gets the service request from the given HttpServletRequest.
|
void |
writeServiceResponse(HttpServletResponse response,
ServiceResponse serviceResponse)
Writes service response.
|
callService, doGet, doPost, getServiceClassdoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic ServiceRequest getServiceRequest(HttpServletRequest request) throws Exception
DispatchServletgetServiceRequest in class DispatchServletrequest - the requestException - in case of any errorpublic void writeServiceResponse(HttpServletResponse response,
ServiceResponse serviceResponse)
throws ServletException,
IOException
DispatchServletwriteServiceResponse in class DispatchServletresponse - the responseserviceResponse - the service responseServletException - the servlet exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2010-2020 Toolsverse. All Rights Reserved.