public abstract class AbstractRestServiceExporter
extends org.springframework.remoting.support.RemoteExporter
implements org.springframework.web.HttpRequestHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
characterEncoding |
protected String |
contentType |
protected RestResourceActionRegistry |
serviceActions |
protected RestServiceDescriptor |
serviceDescriptor |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRestServiceExporter(String characterEncoding,
String contentType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract <T> T |
deserializeRequestBody(Class<T> targetType,
javax.servlet.http.HttpServletRequest request) |
protected void |
explainActionsAsHTML(PrintWriter pw,
boolean fallbackMethods,
String baseRequestURL) |
protected void |
explainService(javax.servlet.http.HttpServletResponse resp) |
protected void |
explainServiceAsHTML(String requestURL,
javax.servlet.http.HttpServletResponse resp) |
void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
onServiceMethodInvoked(Method m,
Object[] args,
Object returnValue) |
protected abstract String |
serializeResponse(Object resultObject) |
void |
setService(Object service) |
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setServiceInterfaceprotected final String characterEncoding
protected final String contentType
protected RestResourceActionRegistry serviceActions
protected RestServiceDescriptor serviceDescriptor
protected abstract <T> T deserializeRequestBody(Class<T> targetType, javax.servlet.http.HttpServletRequest request) throws IOException
IOExceptionprotected void explainActionsAsHTML(PrintWriter pw, boolean fallbackMethods, String baseRequestURL)
protected void explainService(javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionprotected void explainServiceAsHTML(String requestURL, javax.servlet.http.HttpServletResponse resp) throws IOException
IOExceptionpublic void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
handleRequest in interface org.springframework.web.HttpRequestHandlerjavax.servlet.ServletExceptionIOExceptionprotected void onServiceMethodInvoked(Method m, Object[] args, Object returnValue)
protected abstract String serializeResponse(Object resultObject) throws IOException
IOExceptionpublic void setService(Object service)
setService in class org.springframework.remoting.support.RemoteExporterCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.