Package com.microstrategy.webapi.restApi
Class DataWranglerResponseImpl
- java.lang.Object
-
- com.microstrategy.webapi.restApi.DataWranglerResponseImpl
-
- All Implemented Interfaces:
SimpleResponseWrapper
,java.io.Closeable
,java.lang.AutoCloseable
public class DataWranglerResponseImpl extends java.lang.Object implements SimpleResponseWrapper
-
-
Constructor Summary
Constructors Constructor Description DataWranglerResponseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
getBody()
java.io.InputStream
getBodyAsStream()
java.lang.String
getContentType()
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
java.lang.String
getMessage()
int
getStatusCode()
void
setResponse(okhttp3.Response response)
Populate Response parameters
-
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode
in interfaceSimpleResponseWrapper
- Returns:
- response status code
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interfaceSimpleResponseWrapper
- Returns:
- content-type header value
-
getBody
public java.lang.String getBody() throws java.io.IOException
- Specified by:
getBody
in interfaceSimpleResponseWrapper
- Returns:
- response body as String
- Throws:
java.io.IOException
-
getMessage
public java.lang.String getMessage() throws java.io.IOException
- Throws:
java.io.IOException
-
getBodyAsStream
public java.io.InputStream getBodyAsStream()
- Specified by:
getBodyAsStream
in interfaceSimpleResponseWrapper
- Returns:
- response body as Stream
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
- Specified by:
getHeaders
in interfaceSimpleResponseWrapper
- Returns:
- Response headers
-
setResponse
public void setResponse(okhttp3.Response response) throws java.io.IOException
Description copied from interface:SimpleResponseWrapper
Populate Response parameters- Specified by:
setResponse
in interfaceSimpleResponseWrapper
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-