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) protected HeaderParsergetInfo()protected final String[][]send the http request to Palo OLAP serverstatic booleanprotected HttpURLConnectionopenConnection(String request) protected StringvoidresetSessionId(boolean withStop) 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
-
LOGIN_REQUEST_POST
- See Also:
-
info
-
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
protected final String[][] httpSend(Request req) throws IOException, URISyntaxException, PaloException 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 socketsURISyntaxExceptionPaloException
-
openConnection
- Throws:
IOExceptionURISyntaxException
-
getHeaderParser
-
readContent
- Throws:
IOException
-
readContentText
- Throws:
IOException
-
send
- Throws:
PaloException
-
send
- Throws:
PaloException
-
checkLicense
- Throws:
PaloException
-
getInfo
-
isForcePost
public static boolean isForcePost() -
setForcePost
public static void setForcePost(boolean forcePost)
-