Package io.milton.simpleton
Class SimpleMiltonResponse
java.lang.Object
io.milton.http.AbstractResponse
io.milton.simpleton.SimpleMiltonResponse
- All Implemented Interfaces:
Response
- Author:
- bradm (zfc1502)
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.milton.http.Response
Response.CacheControlResponse, Response.ContentEncoding, Response.ContentType, Response.Entity, Response.Header, Response.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.simpleframework.http.Responsebooleanfinal longFields inherited from class io.milton.http.AbstractResponse
contentLength, entityFields inherited from interface io.milton.http.Response
APPLICATION_XML, HTTP, IMAGE_JPG, MULTIPART, MULTIPART_MIXED, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidgetNonStandardHeader(String code) voidsendError(Response.Status status, String message) Just set the status and content, and close the connectionvoidsetAuthenticateHeader(List<String> challenges) voidsetContentLengthHeader(Long totalLength) voidsetLocationHeader(String arg0) voidsetNonStandardHeader(String code, String value) voidsetStatus(Response.Status status) Methods inherited from class io.milton.http.AbstractResponse
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, setVaryHeader
-
Field Details
-
baseResponse
public final org.simpleframework.http.Response baseResponse -
started
public final long started -
disableClose
public boolean disableClose
-
-
Constructor Details
-
SimpleMiltonResponse
public SimpleMiltonResponse(org.simpleframework.http.Response baseResponse)
-
-
Method Details
-
setContentLengthHeader
- Specified by:
setContentLengthHeaderin interfaceResponse- Overrides:
setContentLengthHeaderin classAbstractResponse
-
getStatus
-
setStatus
-
setNonStandardHeader
-
getNonStandardHeader
-
getOutputStream
-
close
public void close() -
closeReally
public void closeReally() -
setLocationHeader
- Specified by:
setLocationHeaderin interfaceResponse- Overrides:
setLocationHeaderin classAbstractResponse
-
getHeaders
-
setAuthenticateHeader
-
setCookie
-
setCookie
-
sendError
Just set the status and content, and close the connection- Parameters:
status-message-
-