protected class CatalinaHttpFacade.ResponseFacade extends Object implements HttpFacade.Response
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
ended |
| Modifier | Constructor and Description |
|---|---|
protected |
CatalinaHttpFacade.ResponseFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String name,
String value) |
void |
end()
If the response is finished, end it.
|
OutputStream |
getOutputStream() |
boolean |
isEnded() |
void |
resetCookie(String name,
String path) |
void |
sendError(int code,
String message) |
void |
setCookie(String name,
String value,
String path,
String domain,
int maxAge,
boolean secure,
boolean httpOnly) |
void |
setHeader(String name,
String value) |
void |
setStatus(int status) |
public void setStatus(int status)
setStatus in interface HttpFacade.Responsepublic void addHeader(String name, String value)
addHeader in interface HttpFacade.Responsepublic void setHeader(String name, String value)
setHeader in interface HttpFacade.Responsepublic void resetCookie(String name, String path)
resetCookie in interface HttpFacade.Responsepublic void setCookie(String name, String value, String path, String domain, int maxAge, boolean secure, boolean httpOnly)
setCookie in interface HttpFacade.Responsepublic OutputStream getOutputStream()
getOutputStream in interface HttpFacade.Responsepublic void sendError(int code,
String message)
sendError in interface HttpFacade.Responsepublic void end()
HttpFacade.Responseend in interface HttpFacade.Responsepublic boolean isEnded()
Copyright © 2014. All Rights Reserved.