public interface ProxyResponse
| Modifier and Type | Method and Description |
|---|---|
String |
etag() |
Body |
getBody()
Get the body of the response.
|
int |
getStatusCode()
Get the status code.
|
String |
getStatusMessage()
Get the status message.
|
MultiMap |
headers() |
long |
maxAge() |
boolean |
publicCacheControl() |
ProxyResponse |
putHeader(CharSequence name,
CharSequence value)
Put an HTTP header.
|
ProxyResponse |
release()
Release the proxy response.
|
ProxyRequest |
request()
Return the corresponding
ProxyRequest. |
Future<Void> |
send()
Send the proxies response to the user agent.
|
ProxyResponse |
setBody(Body body)
Set the request body to be sent to the user agent.
|
ProxyResponse |
setStatusCode(int sc)
Set the status code to be sent to the user agent.
|
ProxyResponse |
setStatusMessage(String statusMessage)
Set the status message to be sent to the user agent.
|
ProxyRequest request()
ProxyRequest.int getStatusCode()
ProxyResponse setStatusCode(int sc)
The initial value is the proxied response status code.
sc - the status codeString getStatusMessage()
ProxyResponse setStatusMessage(String statusMessage)
The initial value is the proxied response status message.
statusMessage - the status messageMultiMap headers()
ProxyResponse putHeader(CharSequence name, CharSequence value)
name - The header namevalue - The header valueBody getBody()
ProxyResponse setBody(Body body)
The initial request body value is the proxied response body.
body - the new bodyboolean publicCacheControl()
long maxAge()
String etag()
etag sent by the origin responseProxyResponse release()
The proxied response is resumed, no HTTP response is sent to the user-agent
Copyright © 2024 Eclipse. All rights reserved.