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 intreturn a async id for this request, this is only returned for async requests (e.g.final Stringget the response content encodingfinal intget the content length of the responsefinal Stringget the response content typefinal intset the error code from olap response (only if error exists)final Stringget the error message from olap response (only if error exists)final StringgetToken()get the token of component that is used in the palo callfinal Stringfinal voidparse(InputStream in) void
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
parse
- Throws:
IOExceptionSocketException
-
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
-