Package com.jedox.palojlib.http
Class HeaderParser
java.lang.Object
com.jedox.palojlib.http.HeaderParser
parses the palo header and saves it's information
- Author:
- khaddadin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
return a async id for this request, this is only returned for async requests (e.g.final String
get the response content encodingfinal int
get the content length of the responsefinal String
get the response content typefinal int
set the error code from olap response (only if error exists)final String
get the error message from olap response (only if error exists)final String
getToken()
get the token of component that is used in the palo callfinal String
void
parse
(HttpURLConnection conn)
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
parse
-
getContentLength
public final int getContentLength()get the content length of the response- Returns:
- content length of olap response
-
getToken
get the token of component that is used in the palo call- Returns:
- OLAP server token
-
getErrorCode
public final int getErrorCode()set the error code from olap response (only if error exists)- Returns:
- errorCode olap error code
-
getErrorMessage
get the error message from olap response (only if error exists)- Returns:
- errormessage olap error message
-
getContentType
get the response content type- Returns:
- contentType response content type
-
getContentEncoding
get the response content encoding- Returns:
- contentEncoding response content type
-
getTransferEncoding
-
getAsyncCallId
public final int getAsyncCallId()return a async id for this request, this is only returned for async requests (e.g. cell/replace_bulk)- Returns:
- async call id returned from olap server
-