public class DefaultHttpHeaders extends Object implements HttpHeaders
Constructor and Description |
---|
DefaultHttpHeaders() |
DefaultHttpHeaders(String result) |
Modifier and Type | Method and Description |
---|---|
String |
apply(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object target)
Applies the configured information to the response
|
DefaultHttpHeaders |
disableCaching() |
String |
getResultCode() |
int |
getStatus() |
DefaultHttpHeaders |
lastModified(Date date) |
DefaultHttpHeaders |
renderResult(String code) |
DefaultHttpHeaders |
setLocation(String loc) |
DefaultHttpHeaders |
setLocationId(Object id) |
void |
setStatus(int s) |
DefaultHttpHeaders |
withETag(Object etag) |
DefaultHttpHeaders |
withNoETag() |
DefaultHttpHeaders |
withStatus(int code) |
public DefaultHttpHeaders()
public DefaultHttpHeaders(String result)
public DefaultHttpHeaders renderResult(String code)
public DefaultHttpHeaders withStatus(int code)
public DefaultHttpHeaders withETag(Object etag)
public DefaultHttpHeaders withNoETag()
public DefaultHttpHeaders setLocationId(Object id)
public DefaultHttpHeaders setLocation(String loc)
public DefaultHttpHeaders lastModified(Date date)
public DefaultHttpHeaders disableCaching()
public String apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object target)
HttpHeaders
apply
in interface HttpHeaders
request
- The requestresponse
- The responsetarget
- The target object, usually the actionpublic int getStatus()
getStatus
in interface HttpHeaders
public void setStatus(int s)
setStatus
in interface HttpHeaders
s
- set the HTTP status codepublic String getResultCode()
getResultCode
in interface HttpHeaders
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.