juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JUNEAU-55) remote proxy should support more HTTP methods
Date Thu, 15 Jun 2017 15:37:00 GMT

    [ https://issues.apache.org/jira/browse/JUNEAU-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050635#comment-16050635

ASF GitHub Bot commented on JUNEAU-55:

GitHub user steveblackmon opened a pull request:


    resolves JUNEAU-55

    i confirmed that interfaces with method annotated with PUT and DELETE no longer throw
errors on instantiation and do indeed call the remote service as expected. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/steveblackmon/incubator-juneau JUNEAU-55

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3
commit 3e9acb5fc4c279441a4bff0d8cd556a2336268e0
Author: Steve Blackmon @steveblackmon <sblackmon@apache.org>
Date:   2017-06-15T15:33:14Z

    resolves JUNEAU-55


> remote proxy should support more HTTP methods
> ---------------------------------------------
>                 Key: JUNEAU-55
>                 URL: https://issues.apache.org/jira/browse/JUNEAU-55
>             Project: Juneau
>          Issue Type: Improvement
>            Reporter: Steve Blackmon
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> Currently if you try to use remote proxy on a interface to perform 'DELETE' or 'PUT',
you get an exception like:
> java.lang.RuntimeException: org.apache.juneau.remoteable.RemoteableMetadataException:
Invalid remoteable definition found on class org.apache.streams.twitter.api.AccountActivity
on method deleteWebhook. Invalid value specified for @RemoteMethod.httpMethod() annotation.
 Valid values are [GET,POST].
> 	at org.apache.juneau.rest.client.RestClient.getRemoteableProxy(RestClient.java:631)
> DELETE and PUT are pretty widely used.  It would great to be able to use those and really
any other http methods via interface proxies

This message was sent by Atlassian JIRA

View raw message