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] [Closed] (JUNEAU-142) BasicRest subclasses need programmatic access to RestRequest/RestResponse
Date Sat, 07 Sep 2019 02:18:00 GMT

     [ https://issues.apache.org/jira/browse/JUNEAU-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Bognar closed JUNEAU-142.
-------------------------------
    Fix Version/s: 8.1.1
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 8.1.1
>
>
> @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