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
 int getStatus()
          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



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