public abstract class DispatchJsonServlet extends DispatchServlet
DispatchServlet
which is uses json to serialize/deserialize requests and responses.ServiceProxyWebJson
,
ServiceProxyLocal
,
ServiceRequest
,
ServiceResponse
,
Serialized FormConstructor 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, getServiceClass
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public ServiceRequest getServiceRequest(HttpServletRequest request) throws Exception
DispatchServlet
getServiceRequest
in class DispatchServlet
request
- the requestException
- in case of any errorpublic void writeServiceResponse(HttpServletResponse response, ServiceResponse serviceResponse) throws ServletException, IOException
DispatchServlet
writeServiceResponse
in class DispatchServlet
response
- the responseserviceResponse
- the service responseServletException
- the servlet exceptionIOException
- Signals that an I/O exception has occurred.Copyright © 2010-2020 Toolsverse. All Rights Reserved.