Class HttpHandler

java.lang.Object
com.jedox.palojlib.http.HttpHandler

public class HttpHandler extends Object
Handler to send the palo requests, for each unique connection there is one handler.
Author:
khaddadin
  • Field Details

  • Constructor Details

  • Method Details

    • setSessionId

      public void setSessionId() throws PaloException
      Throws:
      PaloException
    • setSessionId

      public final void setSessionId(String sessionId) throws PaloException
      set the session id by a given session
      Parameters:
      sessionId - olap session
      Throws:
      PaloException - exception from OLAP server
    • resetSessionId

      public void resetSessionId(boolean stop) throws PaloException
      Throws:
      PaloException
    • httpsend

      protected final String[] httpsend(Request req) throws IOException
      send the http request to Palo OLAP server
      Parameters:
      req - the request object contains all related info for this request
      Returns:
      response as a array of string where each string indicate one line
      Throws:
      IOException - exception while reading/writing to tcp sockets
    • parse

      protected final String[][] parse(String[] response)
      parse the one dimensional array of response lines to 2-dimensional array, where semicolon is the delimiter of the lines.
      Parameters:
      response - Palo OLAP server response
      Returns:
      parsed string
    • send

      public final String[][] send(StringBuilder req) throws PaloException
      Throws:
      PaloException
    • send

      public final String[][] send(Request req) throws PaloException
      Throws:
      PaloException
    • checkLicense

      public String checkLicense(String required, String optional) throws PaloException
      Throws:
      PaloException
    • getInfo

      public HttpHandlerInfo getInfo()
    • isForcePost

      public static boolean isForcePost()
    • setForcePost

      public static void setForcePost(boolean forcePost)