juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-142) BasicRest subclasses need programmatic access to RestRequest/RestResponse
Date Sat, 07 Sep 2019 01:57:00 GMT
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)

Mime
View raw message