@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface RemoteMethod
The return type on the Java method can be any of the following:
RestClient
.
HttpResponse
- Returns the raw HttpResponse
returned by the inner
HttpClient
.
Reader
- Returns access to the raw reader of the response.
InputStream
- Returns access to the raw input stream of the response.
Modifier and Type | Optional Element and Description |
---|---|
String |
httpMethod
Defines the HTTP method to use for REST calls.
|
String |
path
The path to the REST service for this Java method relative to the parent proxy interface URL.
|
ReturnValue |
returns
The value the remoteable method returns.
|
public abstract String path
The default value is the Java method name (e.g. @Remoteable.methodPaths()
is
public abstract String httpMethod
Possible values:
The default value is
public abstract ReturnValue returns
Possible values:
ReturnValue.BODY
(default) - The body of the HTTP response converted to a POJO.
RestClient
.
HttpResponse
- Returns the raw HttpResponse
returned by the inner
HttpClient
.
Reader
- Returns access to the raw reader of the response.
InputStream
- Returns access to the raw input stream of the response.
ReturnValue.HTTP_STATUS
- The HTTP status code on the response.
Integer
- The HTTP response code.
Boolean
- <400
Copyright © 2018 Apache. All rights reserved.