Package com.jedox.palojlib.http
Class HttpHandler
java.lang.Object
com.jedox.palojlib.http.HttpHandler
Handler to send the palo requests, for each unique connection there is one handler.
- Author:
- khaddadin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HttpHandlerInfoprotected static final Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckLicense(String required, String optional) getInfo()protected final String[]send the http request to Palo OLAP serverstatic booleanprotected final String[][]parse the one dimensional array of response lines to 2-dimensional array, where semicolon is the delimiter of the lines.voidresetSessionId(boolean stop) final String[][]final String[][]send(StringBuilder req) static voidsetForcePost(boolean forcePost) voidfinal voidsetSessionId(String sessionId) set the session id by a given session
-
Field Details
-
info
-
LOGIN_REQUEST_POST
- See Also:
-
SessionId
-
-
Constructor Details
-
HttpHandler
-
-
Method Details
-
setSessionId
- Throws:
PaloException
-
setSessionId
set the session id by a given session- Parameters:
sessionId- olap session- Throws:
PaloException- exception from OLAP server
-
resetSessionId
- Throws:
PaloException
-
httpsend
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
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
- Throws:
PaloException
-
send
- Throws:
PaloException
-
checkLicense
- Throws:
PaloException
-
getInfo
-
isForcePost
public static boolean isForcePost() -
setForcePost
public static void setForcePost(boolean forcePost)
-