|
KIE Remote Services :: Common 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface KieRemoteHttpResponse
Interface that exposes response related functionality of a KieRemoteHttpRequest instance.
| Method Summary | |
|---|---|
String |
body()
Get response as String using character set returned from charset() |
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 |
| Method Detail |
|---|
int code()
throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String message()
throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String body()
throws KieRemoteHttpRequestException
String using character set returned from charset()
KieRemoteHttpRequestException
byte[] bytes()
throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
InputStream stream()
throws KieRemoteHttpRequestException
InputStream containing the response body content
KieRemoteHttpRequestException
BufferedInputStream buffer()
throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
String header(String name)
throws KieRemoteHttpRequestException
name - The name of the response header
KieRemoteHttpRequestException
int intHeader(String name)
throws KieRemoteHttpRequestException
KieRemoteHttpRequestException
Map<String,List<String>> headers()
throws KieRemoteHttpRequestException
KieRemoteHttpRequestExceptionString[] headers(String name)
String headerParameter(String headerName,
String paramName)
Map<String,String> headerParameters(String headerName)
String contentEncoding()
String contentType()
int contentLength()
String charset()
|
KIE Remote Services :: Common 6.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||