public interface KieRemoteHttpResponse
KieRemoteHttpRequest
instance.Modifier and Type | Method and Description |
---|---|
String |
body()
|
BufferedInputStream |
buffer() |
byte[] |
bytes()
Get response as byte array
|
String |
charset()
Get 'charset' parameter from 'Content-Type' response header
|
int |
code() |
String |
contentEncoding()
Get the 'Content-Encoding' header from the response
|
int |
contentLength()
Get the 'Content-Length' header from the response
|
String |
contentType()
Get the 'Content-Type' header from the response
|
String |
header(String name)
Get the response header
|
String |
headerParameter(String headerName,
String paramName) |
Map<String,String> |
headerParameters(String headerName) |
Map<String,List<String>> |
headers() |
String[] |
headers(String name) |
int |
intHeader(String name) |
String |
message() |
InputStream |
stream()
Get stream to response body
|
int code() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String message() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String body() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
byte[] bytes() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
InputStream stream() throws KieRemoteHttpRequestException
InputStream
containing the response body contentKieRemoteHttpRequestException
BufferedInputStream buffer() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String header(String name) throws KieRemoteHttpRequestException
name
- The name of the response headerKieRemoteHttpRequestException
int intHeader(String name) throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
Map<String,List<String>> headers() throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String contentEncoding()
String contentType()
int contentLength()
String charset()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.