Class UsherQRCodeRequest
- java.lang.Object
-
- com.microstrategy.web.app.utils.usher.NetworkRequest
-
- com.microstrategy.web.app.utils.usher.UsherQRCodeRequest
-
- All Implemented Interfaces:
EnumUsherRequest
public class UsherQRCodeRequest extends NetworkRequest implements EnumUsherRequest
-
-
Field Summary
-
Fields inherited from class com.microstrategy.web.app.utils.usher.NetworkRequest
FORMAT_JSON, FORMAT_XML, HTTP_USHER_HEADER_ERROR, isPost, jsonDataParam, requestParams, requestProps, responseHeaderFields
-
Fields inherited from interface com.microstrategy.web.app.utils.usher.EnumUsherRequest
BAD_CONFIG, CUSTOMER_USHER_APP_ID, GENERIC_ERROR_CODE_FOR_USHER_AUTH, HANDLE_INPUT_STREAM, HANDLE_STRING, INVALID_RESPONSE_FROM_USHER, INVALID_TOKEN, ORG_ID, SESSION_ID, TIME_TO_LIVE, USER_ALREADY_EXISTS, USHER_ACCESS_TOKEN
-
-
Constructor Summary
Constructors Constructor Description UsherQRCodeRequest(RequestKeys incomingKeys, UsherSessionHelper session, AppContext appContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRequestParameters()
protected void
addRequestProperties()
java.lang.String
getContentType()
java.lang.String
getMessage()
java.lang.String
getResult()
byte[]
getResultArray()
java.lang.String
getStatus()
protected java.lang.String
getUserAgent()
java.lang.String
getUserName()
protected void
handleResponse(java.io.InputStream inputStream, java.lang.String contentType, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
protected void
handleResponse(java.lang.String result)
static boolean
requestQRCodeToken(RequestKeys keys)
protected void
setMessage(java.lang.String message)
void
setResult(java.lang.String result)
void
setResultArray(byte[] resultArray)
protected void
setStatus(java.lang.String status)
protected void
setUserName(java.lang.String u)
-
Methods inherited from class com.microstrategy.web.app.utils.usher.NetworkRequest
addBody, addJsonDataParam, buildURL, executeStringContentType, getCookieFromResponseHeader, getErrorDetails, getJsonStringIfExists, getResponseFromRequest, handleErrorCodes, makePath, setResponseFromRequest
-
-
-
-
Constructor Detail
-
UsherQRCodeRequest
public UsherQRCodeRequest(RequestKeys incomingKeys, UsherSessionHelper session, AppContext appContext) throws WebObjectsException
- Throws:
WebObjectsException
-
-
Method Detail
-
handleResponse
protected void handleResponse(java.io.InputStream inputStream, java.lang.String contentType, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) throws TaskInternalException
- Specified by:
handleResponse
in classNetworkRequest
- Throws:
TaskInternalException
-
addRequestParameters
protected void addRequestParameters() throws TaskException
- Specified by:
addRequestParameters
in classNetworkRequest
- Throws:
TaskException
-
getStatus
public java.lang.String getStatus()
-
setStatus
protected void setStatus(java.lang.String status)
-
getMessage
public java.lang.String getMessage()
-
setMessage
protected void setMessage(java.lang.String message)
-
getUserName
public java.lang.String getUserName()
-
setUserName
protected void setUserName(java.lang.String u)
-
getResult
public java.lang.String getResult()
-
setResult
public void setResult(java.lang.String result)
-
getResultArray
public byte[] getResultArray()
-
setResultArray
public void setResultArray(byte[] resultArray)
-
handleResponse
protected void handleResponse(java.lang.String result) throws TaskInternalException
- Specified by:
handleResponse
in classNetworkRequest
- Throws:
TaskInternalException
-
getContentType
public java.lang.String getContentType()
-
requestQRCodeToken
public static boolean requestQRCodeToken(RequestKeys keys)
- Returns:
- if true then only a compact QR code token is returned, if false then the QR code image is returned
-
addRequestProperties
protected void addRequestProperties()
- Specified by:
addRequestProperties
in classNetworkRequest
-
getUserAgent
protected java.lang.String getUserAgent()
-
-