protected class JaxrsHttpFacade.ResponseFacade extends Object implements HttpFacade.Response
Modifier | Constructor and Description |
---|---|
protected |
JaxrsHttpFacade.ResponseFacade() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
String value) |
void |
end()
If the response is finished, end it.
|
OutputStream |
getOutputStream() |
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.Response
public void addHeader(String name, String value)
addHeader
in interface HttpFacade.Response
public void setHeader(String name, String value)
setHeader
in interface HttpFacade.Response
public void resetCookie(String name, String path)
resetCookie
in interface HttpFacade.Response
public void setCookie(String name, String value, String path, String domain, int maxAge, boolean secure, boolean httpOnly)
setCookie
in interface HttpFacade.Response
public OutputStream getOutputStream()
getOutputStream
in interface HttpFacade.Response
public void sendError(int code, String message)
sendError
in interface HttpFacade.Response
public void end()
HttpFacade.Response
end
in interface HttpFacade.Response
Copyright © 2015. All rights reserved.