ServiceResponseWithHeaders<TBody,THeader> Class
- java.
lang. Object - com.
microsoft. bot. restclient. ServiceResponse<T> - com.
microsoft. bot. restclient. ServiceResponseWithHeaders<TBody,THeader>
- com.
- com.
Type Parameters
- TBody
the type of the response
- THeader
the type of the response header object
public final class ServiceResponseWithHeaders<TBody,THeader>
extends ServiceResponse<TBody>
An instance of this class holds a response object and a raw REST response.
Constructor Summary
Constructor | Description |
---|---|
ServiceResponseWithHeaders(TBody body, THeader headers, Response<ResponseBody> response) |
Instantiate a Service |
ServiceResponseWithHeaders(THeader headers, Response<Void> response) |
Instantiate a Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
THeader |
headers()
Gets the response headers. |
Methods inherited from ServiceResponse
Methods inherited from java.lang.Object
Constructor Details
ServiceResponseWithHeaders
public ServiceResponseWithHeaders(TBody body, THeader headers, Response
Instantiate a ServiceResponse instance with a response object and a raw REST response.
Parameters:
ServiceResponseWithHeaders
public ServiceResponseWithHeaders(THeader headers, Response
Instantiate a ServiceResponse instance with a response object and a raw REST response.
Parameters:
Method Details
headers
public THeader headers()
Gets the response headers.
Returns: