public class SMDServiceExporter
extends org.springframework.remoting.support.RemoteExporter
implements org.springframework.web.HttpRequestHandler, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
SMDServiceExporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
static Map<String,Method> |
buildExportedMethodsByName(Class<?> serviceInterface) |
static String |
buildSMDTemplate(Class<?> serviceInterface,
Object service,
Map<String,Method> exportedMethodsByName,
boolean pretty)
JSON RPC1 Simple Method Description builder
see http://dojo.jot.com/SMD
see http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book9
|
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes the incoming JSON request and creates a JSON response..
|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterfacepublic static Map<String,Method> buildExportedMethodsByName(Class<?> serviceInterface)
public static String buildSMDTemplate(Class<?> serviceInterface, Object service, Map<String,Method> exportedMethodsByName, boolean pretty) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
handleRequest in interface org.springframework.web.HttpRequestHandlerjavax.servlet.ServletExceptionIOExceptionCopyright © 2010–2021 Vegard IT GmbH, Germany. All rights reserved.