Package org.apache.struts2.rest
Interface HttpHeaders
- All Known Implementing Classes:
- DefaultHttpHeaders
public interface HttpHeaders
Type-safe rest-related information to apply to a response
- 
Method Summary
- 
Method Details- 
applyString apply(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object target) Applies the configured information to the response- Parameters:
- request- The request
- response- The response
- target- The target object, usually the action
- Returns:
- The result code to process
 
- 
getStatusint getStatus()- Returns:
- The HTTP status code
 
- 
setStatusvoid setStatus(int status) - Parameters:
- status- set the HTTP status code
 
- 
getResultCodeString getResultCode()- Returns:
- The result code to process
 
 
-