Class GsaApiManager

    • Constructor Summary

      Constructors 
      Constructor Description
      GsaApiManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void appendParam​(java.lang.StringBuilder buf, java.lang.String name, java.lang.String value)  
      protected void appendParam​(java.lang.StringBuilder buf, java.lang.String name, java.lang.String value, java.lang.String original)  
      protected java.lang.String escapeXml​(java.lang.Object obj)  
      java.lang.String getXmlPathPrefix()  
      boolean matches​(javax.servlet.http.HttpServletRequest request)  
      void process​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)  
      protected void processSearchRequest​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain)  
      void register()  
      void setGsaPathPrefix​(java.lang.String gsaPathPrefix)  
      void setXmlPathPrefix​(java.lang.String xmlPathPrefix)  
      protected void writeHeaders​(javax.servlet.http.HttpServletResponse response)  
      protected void writeXmlResponse​(int status, boolean xmlDtd, java.lang.String body, java.lang.String errMsg)  
      • Methods inherited from class java.lang.Object

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

      • gsaPathPrefix

        protected java.lang.String gsaPathPrefix
    • Constructor Detail

      • GsaApiManager

        public GsaApiManager()
    • Method Detail

      • register

        @PostConstruct
        public void register()
      • matches

        public boolean matches​(javax.servlet.http.HttpServletRequest request)
        Specified by:
        matches in interface WebApiManager
      • process

        public void process​(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            javax.servlet.FilterChain chain)
                     throws java.io.IOException,
                            javax.servlet.ServletException
        Specified by:
        process in interface WebApiManager
        Throws:
        java.io.IOException
        javax.servlet.ServletException
      • appendParam

        protected void appendParam​(java.lang.StringBuilder buf,
                                   java.lang.String name,
                                   java.lang.String value)
                            throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException
      • appendParam

        protected void appendParam​(java.lang.StringBuilder buf,
                                   java.lang.String name,
                                   java.lang.String value,
                                   java.lang.String original)
      • processSearchRequest

        protected void processSearchRequest​(javax.servlet.http.HttpServletRequest request,
                                            javax.servlet.http.HttpServletResponse response,
                                            javax.servlet.FilterChain chain)
      • writeXmlResponse

        protected void writeXmlResponse​(int status,
                                        boolean xmlDtd,
                                        java.lang.String body,
                                        java.lang.String errMsg)
      • escapeXml

        protected java.lang.String escapeXml​(java.lang.Object obj)
      • getXmlPathPrefix

        public java.lang.String getXmlPathPrefix()
      • setXmlPathPrefix

        public void setXmlPathPrefix​(java.lang.String xmlPathPrefix)
      • setGsaPathPrefix

        public void setGsaPathPrefix​(java.lang.String gsaPathPrefix)
      • writeHeaders

        protected void writeHeaders​(javax.servlet.http.HttpServletResponse response)
        Specified by:
        writeHeaders in class BaseApiManager