Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`String` | `apply(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object target)` Applies the configured information to the response
`String` | `getResultCode()` The result code to process
`int` | `getStatus()` The HTTP status code
`void` | `setStatus(int status)` The HTTP status code

Method Detail

### apply

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

### getStatus

    int getStatus()

  The HTTP status code

### setStatus

    void setStatus(int status)

  The HTTP status code

### getResultCode

    String getResultCode()

  The result code to process

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000–2018 Apache Software Foundation. All rights reserved.