Class QueryServiceJsonServer

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.web.HttpRequestHandler

    @Controller
    public class QueryServiceJsonServer
    extends AbstractApiJsonServiceExporter
    • Field Summary

      • Fields inherited from class org.springframework.remoting.support.RemotingSupport

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      protected org.springframework.context.ApplicationContext getApplicationContext()  
      protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()  
      void handleRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void setAllowExtraParams​(boolean arg0)  
      void setAllowLessParams​(boolean arg0)  
      void setApplicationContext​(org.springframework.context.ApplicationContext arg0)  
      void setBackwardsCompatible​(boolean arg0)  
      void setContentType​(java.lang.String arg0)  
      void setConvertedParameterTransformer​(com.googlecode.jsonrpc4j.ConvertedParameterTransformer arg0)  
      void setErrorResolver​(com.googlecode.jsonrpc4j.ErrorResolver arg0)  
      void setHttpStatusCodeProvider​(com.googlecode.jsonrpc4j.HttpStatusCodeProvider arg0)  
      void setInterceptorList​(java.util.List<com.googlecode.jsonrpc4j.JsonRpcInterceptor> arg0)  
      void setInvocationListener​(com.googlecode.jsonrpc4j.InvocationListener arg0)  
      void setObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper arg0)  
      void setRethrowExceptions​(boolean arg0)  
      void setShouldLogInvocationErrors​(boolean arg0)  
      • Methods inherited from class com.googlecode.jsonrpc4j.spring.JsonServiceExporter

        exportService
      • Methods inherited from class org.springframework.remoting.support.RemoteExporter

        checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface
      • Methods inherited from class org.springframework.remoting.support.RemotingSupport

        getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryServiceJsonServer

        public QueryServiceJsonServer()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • handleRequest

        @RequestMapping({"/rmi-query-v1.json","/openbis/rmi-query-v1.json"})
        public void handleRequest​(javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
        Specified by:
        handleRequest in interface org.springframework.web.HttpRequestHandler
        Overrides:
        handleRequest in class com.googlecode.jsonrpc4j.spring.JsonServiceExporter
        Throws:
        javax.servlet.ServletException
        java.io.IOException
      • getObjectMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
      • setObjectMapper

        public void setObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper arg0)
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext arg0)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • setErrorResolver

        public void setErrorResolver​(com.googlecode.jsonrpc4j.ErrorResolver arg0)
      • setBackwardsCompatible

        public void setBackwardsCompatible​(boolean arg0)
      • setRethrowExceptions

        public void setRethrowExceptions​(boolean arg0)
      • setAllowExtraParams

        public void setAllowExtraParams​(boolean arg0)
      • setAllowLessParams

        public void setAllowLessParams​(boolean arg0)
      • setInvocationListener

        public void setInvocationListener​(com.googlecode.jsonrpc4j.InvocationListener arg0)
      • setHttpStatusCodeProvider

        public void setHttpStatusCodeProvider​(com.googlecode.jsonrpc4j.HttpStatusCodeProvider arg0)
      • setConvertedParameterTransformer

        public void setConvertedParameterTransformer​(com.googlecode.jsonrpc4j.ConvertedParameterTransformer arg0)
      • setShouldLogInvocationErrors

        public void setShouldLogInvocationErrors​(boolean arg0)
      • setContentType

        public void setContentType​(java.lang.String arg0)
      • setInterceptorList

        public void setInterceptorList​(java.util.List<com.googlecode.jsonrpc4j.JsonRpcInterceptor> arg0)