public class RemoteableMethodMeta extends Object
Captures the information in @RemoteMethod
annotations for caching and reuse.
Constructor and Description |
---|
RemoteableMethodMeta(String restUrl,
Method m)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Integer |
getBodyArg()
Returns the argument annotated with
@Body . |
RemoteMethodArg[] |
getFormDataArgs()
Returns the
@FormData annotated arguments on this Java method. |
RemoteMethodArg[] |
getHeaderArgs()
Returns the
@Header annotated arguments on this Java method. |
String |
getHttpMethod()
Returns the value of the
@RemoteMethod.httpMethod() annotation on this Java method. |
Integer[] |
getOtherArgs()
Returns the remaining non-annotated arguments on this Java method.
|
RemoteMethodArg[] |
getPathArgs()
Returns the
@Path annotated arguments on this Java method. |
RemoteMethodArg[] |
getQueryArgs()
Returns the
@Query annotated arguments on this Java method. |
RemoteMethodArg[] |
getRequestBeanArgs()
Returns the
@RequestBean annotated arguments on this Java method. |
ReturnValue |
getReturns()
Returns whether the method returns the HTTP response body or status code.
|
String |
getUrl()
Returns the absolute URL of the REST interface invoked by this Java method.
|
public RemoteableMethodMeta(String restUrl, Method m)
restUrl
- The absolute URL of the REST interface backing the interface proxy.m
- The Java method.public String getHttpMethod()
@RemoteMethod.httpMethod()
annotation on this Java method.public String getUrl()
public RemoteMethodArg[] getPathArgs()
@Path
annotated arguments on this Java method.@Path.value()
names to zero-indexed argument indices.public RemoteMethodArg[] getQueryArgs()
@Query
annotated arguments on this Java method.@Query.value()
names to zero-indexed argument indices.public RemoteMethodArg[] getFormDataArgs()
@FormData
annotated arguments on this Java method.@FormData.value()
names to zero-indexed argument indices.public RemoteMethodArg[] getHeaderArgs()
@Header
annotated arguments on this Java method.@Header.value()
names to zero-indexed argument indices.public RemoteMethodArg[] getRequestBeanArgs()
@RequestBean
annotated arguments on this Java method.public Integer[] getOtherArgs()
public Integer getBodyArg()
@Body
.@Body
annotation, or public ReturnValue getReturns()
Copyright © 2018 Apache. All rights reserved.