public class SimpleMiltonResponse extends AbstractResponse
Response.CacheControlResponse, Response.ContentEncoding, Response.ContentType, Response.Entity, Response.Header, Response.Status| Modifier and Type | Field and Description |
|---|---|
org.simpleframework.http.Response |
baseResponse |
boolean |
disableClose |
long |
started |
contentLength, entityAPPLICATION_XML, HTTP, IMAGE_JPG, MULTIPART, MULTIPART_MIXED, XML| Constructor and Description |
|---|
SimpleMiltonResponse(org.simpleframework.http.Response baseResponse) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeReally() |
Map<String,String> |
getHeaders() |
String |
getNonStandardHeader(String code) |
OutputStream |
getOutputStream() |
Response.Status |
getStatus() |
void |
sendError(Response.Status status,
String message)
Just set the status and content, and close the connection
|
void |
setAuthenticateHeader(List<String> challenges) |
void |
setContentLengthHeader(Long totalLength) |
Cookie |
setCookie(Cookie cookie) |
Cookie |
setCookie(String name,
String value) |
void |
setLocationHeader(String arg0) |
void |
setNonStandardHeader(String code,
String value) |
void |
setStatus(Response.Status status) |
getAcceptRanges, getAccessControlAllowOrigin, getContentLength, getContentTypeHeader, getEntity, getResponseHeader, sendPermanentRedirect, sendRedirect, setAcceptRanges, setAccessControlAllowOrigin, setAllowHeader, setAnyDateHeader, setCacheControlMaxAgeHeader, setCacheControlNoCacheHeader, setCacheControlPrivateMaxAgeHeader, setContentEncodingHeader, setContentRangeHeader, setContentTypeHeader, setDateHeader, setDavHeader, setEntity, setEtag, setExpiresHeader, setLastModifiedHeader, setLockTokenHeader, setResponseHeader, setVaryHeaderpublic final org.simpleframework.http.Response baseResponse
public final long started
public boolean disableClose
public SimpleMiltonResponse(org.simpleframework.http.Response baseResponse)
public void setContentLengthHeader(Long totalLength)
setContentLengthHeader in interface ResponsesetContentLengthHeader in class AbstractResponsepublic Response.Status getStatus()
public void setStatus(Response.Status status)
public OutputStream getOutputStream()
public void close()
public void closeReally()
public void setLocationHeader(String arg0)
setLocationHeader in interface ResponsesetLocationHeader in class AbstractResponsepublic void sendError(Response.Status status, String message)
status - message - Copyright © 2021 McEvoy Software Ltd. All rights reserved.