You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2019/09/07 01:57:00 UTC

[jira] [Created] (JUNEAU-142) BasicRest subclasses need programmatic access to RestRequest/RestResponse

James Bognar created JUNEAU-142:
-----------------------------------

             Summary: BasicRest subclasses need programmatic access to RestRequest/RestResponse
                 Key: JUNEAU-142
                 URL: https://issues.apache.org/jira/browse/JUNEAU-142
             Project: Juneau
          Issue Type: Task
          Components: Code
    Affects Versions: 8.1.0
            Reporter: James Bognar
            Assignee: James Bognar


@RestMethod-annotated methods typically get access to the RestRequest/RestResponse objects by passing them as method parameters.  However, if your REST class is implementing a @RemoteResource-annotated interface, you can't really pass in these parameters on the method.

Instead, add the following methods on the BasicRest class so that they can be accessed programmatically:
   protected RestRequest getRestRequest();
   protected RestResponse getRestResponse();

 

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)