public class RemoteMethodMeta extends Object
Captures the information in @RemoteMethod annotations for caching and reuse.
| Constructor and Description |
|---|
RemoteMethodMeta(String parentPath,
Method m,
boolean useMethodSignatures,
String defaultMethod)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteMethodArg |
getBodyArg()
Returns the argument annotated with
@Body. |
Class<?>[] |
getExceptions()
Returns the exceptions thrown by this method.
|
RemoteMethodArg[] |
getFormDataArgs()
Returns the
@FormData annotated arguments on this Java method. |
String |
getFullPath()
Returns the absolute URL of the REST interface invoked by 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. |
Method |
getJavaMethod()
Returns the underlying Java method that this metadata is about.
|
RemoteMethodArg[] |
getOtherArgs()
Returns the remaining non-annotated arguments on this Java method.
|
String |
getPath()
Returns the HTTP path of this method.
|
RemoteMethodArg[] |
getPathArgs()
Returns the
@Path annotated arguments on this Java method. |
RemoteMethodArg[] |
getQueryArgs()
Returns the
@Query annotated arguments on this Java method. |
RemoteMethodBeanArg[] |
getRequestArgs()
Returns the
@Request annotated arguments on this Java method. |
RemoteMethodReturn |
getReturns()
Returns whether the method returns the HTTP response body or status code.
|
public RemoteMethodMeta(String parentPath, Method m, boolean useMethodSignatures, String defaultMethod)
parentPath - The absolute URL of the REST interface backing the interface proxy.m - The Java method.useMethodSignatures - If defaultMethod - The default HTTP method if not specified through annotation.public String getHttpMethod()
@RemoteMethod(httpMethod) annotation on this Java method.public String getFullPath()
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 RemoteMethodBeanArg[] getRequestArgs()
@Request annotated arguments on this Java method.public RemoteMethodArg[] getOtherArgs()
public RemoteMethodArg getBodyArg()
@Body.@Body annotation, or public RemoteMethodReturn getReturns()
public String getPath()
public Method getJavaMethod()
public Class<?>[] getExceptions()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.