Package io.milton.http
Class AbstractResponse
java.lang.Object
io.milton.http.AbstractResponse
- All Implemented Interfaces:
Response
- Direct Known Subclasses:
ServletResponse,SimpleMiltonResponse
-
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
FieldsFields inherited from interface io.milton.http.Response
APPLICATION_XML, HTTP, IMAGE_JPG, MULTIPART, MULTIPART_MIXED, XML -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResponseHeader(Response.Header header) voidvoidsendRedirect(String url) voidvoidvoidsetAllowHeader(List<String> methodsAllowed) protected voidsetAnyDateHeader(Response.Header name, Date date) voidsetCacheControlMaxAgeHeader(Long delta) voidvoidvoidvoidsetContentLengthHeader(Long totalLength) voidsetContentRangeHeader(long start, long finish, Long totalLength) voidsetContentTypeHeader(String type) voidsetDateHeader(Date date) voidsetDavHeader(String supportedLevels) voidsetEntity(Response.Entity entity) voidvoidsetExpiresHeader(Date expiresAt) voidsetLastModifiedHeader(Date date) voidsetLocationHeader(String redirectUrl) voidvoidsetResponseHeader(Response.Header header, String value) voidsetVaryHeader(String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.milton.http.Response
close, getHeaders, getNonStandardHeader, getOutputStream, getStatus, sendError, setAuthenticateHeader, setCookie, setCookie, setNonStandardHeader, setStatus
-
Field Details
-
contentLength
-
entity
-
-
Constructor Details
-
AbstractResponse
public AbstractResponse()
-
-
Method Details
-
setResponseHeader
-
getResponseHeader
-
setContentEncodingHeader
- Specified by:
setContentEncodingHeaderin interfaceResponse
-
getContentLength
- Specified by:
getContentLengthin interfaceResponse
-
setDateHeader
- Specified by:
setDateHeaderin interfaceResponse
-
setContentRangeHeader
- Specified by:
setContentRangeHeaderin interfaceResponse
-
setContentLengthHeader
- Specified by:
setContentLengthHeaderin interfaceResponse
-
setContentTypeHeader
- Specified by:
setContentTypeHeaderin interfaceResponse
-
getContentTypeHeader
- Specified by:
getContentTypeHeaderin interfaceResponse
-
setCacheControlMaxAgeHeader
- Specified by:
setCacheControlMaxAgeHeaderin interfaceResponse
-
setCacheControlPrivateMaxAgeHeader
- Specified by:
setCacheControlPrivateMaxAgeHeaderin interfaceResponse
-
setExpiresHeader
- Specified by:
setExpiresHeaderin interfaceResponse
-
setEtag
-
setLastModifiedHeader
- Specified by:
setLastModifiedHeaderin interfaceResponse
-
setCacheControlNoCacheHeader
public void setCacheControlNoCacheHeader()- Specified by:
setCacheControlNoCacheHeaderin interfaceResponse
-
setLocationHeader
- Specified by:
setLocationHeaderin interfaceResponse
-
getAcceptRanges
- Specified by:
getAcceptRangesin interfaceResponse
-
setAcceptRanges
- Specified by:
setAcceptRangesin interfaceResponse
-
setAllowHeader
- Specified by:
setAllowHeaderin interfaceResponse
-
setLockTokenHeader
- Specified by:
setLockTokenHeaderin interfaceResponse
-
setDavHeader
- Specified by:
setDavHeaderin interfaceResponse
-
setVaryHeader
- Specified by:
setVaryHeaderin interfaceResponse
-
getAccessControlAllowOrigin
- Specified by:
getAccessControlAllowOriginin interfaceResponse
-
setAccessControlAllowOrigin
- Specified by:
setAccessControlAllowOriginin interfaceResponse
-
setEntity
-
getEntity
-
sendRedirect
- Specified by:
sendRedirectin interfaceResponse
-
sendPermanentRedirect
- Specified by:
sendPermanentRedirectin interfaceResponse
-
setAnyDateHeader
-