Class RestActionSupport

java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.rest.RestActionSupport
All Implemented Interfaces:
Serializable, Action, ValidationAware, LocaleProvider, TextProvider, Validateable

public class RestActionSupport extends ActionSupport
Extends ActionSupport to provides a default implementation of the index method that can be invoked for unknown actions by the UnknownHandler.
See Also:
  • Constructor Details

    • RestActionSupport

      public RestActionSupport()
  • Method Details

    • index

      public Object index() throws Exception
      Default execution.
      Returns:
      object because it can return string, result or httpHeader.
      Throws:
      Exception - in case of any error
    • options

      public HttpHeaders options()
      Inspect the implemented methods to know the allowed http methods.
      Returns:
      Include the header "Allow" with the allowed http methods.
    • createContinue

      public HttpHeaders createContinue()
      By default, return continue. Is possible override the method to return expectation failed.
      Returns:
      continue
    • updateContinue

      public HttpHeaders updateContinue()
      By default, return continue. Is possible override the method to return expectation failed.
      Returns:
      continue