org.apache.struts2.rest
Interface HttpHeaders

All Known Implementing Classes:
DefaultHttpHeaders

public interface HttpHeaders

Type-safe rest-related informtion to apply to a response


Method Summary
 java.lang.String apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object target)
          Applies the configured information to the response
 java.lang.String getResultCode()
          The result code to process
 int getStatus()
          The HTTP status code
 void setStatus(int status)
          The HTTP status code
 

Method Detail

apply

java.lang.String apply(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       java.lang.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

getStatus

int getStatus()
The HTTP status code


setStatus

void setStatus(int status)
The HTTP status code


getResultCode

java.lang.String getResultCode()
The result code to process



Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.