public interface KieServerHttpResponse
KieServerHttpRequest 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 KieServerHttpRequestException
KieServerHttpRequestExceptionString message() throws KieServerHttpRequestException
KieServerHttpRequestExceptionString body() throws KieServerHttpRequestException
KieServerHttpRequestExceptionbyte[] bytes()
throws KieServerHttpRequestException
KieServerHttpRequestExceptionInputStream stream() throws KieServerHttpRequestException
InputStream containing the response body contentKieServerHttpRequestExceptionBufferedInputStream buffer() throws KieServerHttpRequestException
KieServerHttpRequestExceptionString header(String name) throws KieServerHttpRequestException
name - The name of the response headerKieServerHttpRequestExceptionint intHeader(String name) throws KieServerHttpRequestException
KieServerHttpRequestExceptionMap<String,List<String>> headers() throws KieServerHttpRequestException
KieServerHttpRequestExceptionString contentEncoding()
String contentType()
int contentLength()
String charset()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.