Overview | Package | Class | Tree | Deprecated | Index | Help
| Copyright © 2008 BEA Systems, Inc. All Rights Reserved
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.wlp.rest.command
Interface RestCommand

    public interface RestCommand

Interface to be implemented by all `RestCommands`. Each `RestCommand` can be configured via `wlp-restapi-config.xml` to handle a specific URI, which can then be mapped to a full URL via it's configured namespace and servlet context information.

Depending on the HTTP method used for a request that is dispatched to a `RestCommand` one of the four method handling interface members will be invoked.

Method Summary
`RestResult` | `doDelete(RestContext restContext)` Handles DELETE method command requests.
`RestResult` | `doGet(RestContext restContext)` Handles GET method command requests.
`RestResult` | `doPost(RestContext restContext)` Handles POST method command requests.
`RestResult` | `doPut(RestContext restContext)` Handles PUT method command requests.

Method Detail

### doGet

    RestResult doGet(RestContext restContext)

  Handles GET method command requests.

  Parameters
    `restContext` - the `RestContext` for the current command request
  Returns
    a `RestResult` containing the results of running the `RestCommand`

### doPost

    RestResult doPost(RestContext restContext)

  Handles POST method command requests.

  Parameters
    `restContext` - the `RestContext` for the current command request
  Returns
    a `RestResult` containing the results of running the `RestCommand`

### doPut

    RestResult doPut(RestContext restContext)

  Handles PUT method command requests.

  Parameters
    `restContext` - the `RestContext` for the current command request
  Returns
    a `RestResult` containing the results of running the `RestCommand`

### doDelete

    RestResult doDelete(RestContext restContext)

  Handles DELETE method command requests.

  Parameters
    `restContext` - the `RestContext` for the current command request
  Returns
    a `RestResult` containing the results of running the `RestCommand`

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

Copyright © 2008 BEA Systems, Inc. All Rights Reserved