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 HttpHandlerInfo
protected static final String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckLicense
(String required, String optional) protected HeaderParser
getInfo()
protected final String[]
send the http request to Palo OLAP serverstatic boolean
protected HttpURLConnection
openConnection
(String request) protected final String[][]
parse the one dimensional array of response lines to 2-dimensional array, where semicolon is the delimiter of the lines.protected String
void
resetSessionId
(boolean withStop) final String[][]
final String[][]
send
(StringBuilder req) static void
setForcePost
(boolean forcePost) void
final void
setSessionId
(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
-
openConnection
- Throws:
IOException
-
getHeaderParser
-
readContent
- Throws:
IOException
-
readContentText
- Throws:
IOException
-
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)
-