Class AbstractMethodWrapper
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractJaxRsWrapper
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper
-
- Direct Known Subclasses:
ResourceMethod,SubResourceLocator
@Deprecated public abstract class AbstractMethodWrapper extends AbstractJaxRsWrapper
Deprecated.Will be removed in next minor release.An abstract wrapper class for resource methods, sub resource methods and sub resource locators.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.MethodexecuteMethodDeprecated.the Java method that should be called.(package private) ParameterListparametersDeprecated.(package private) ResourceClassresourceClassDeprecated.
-
Constructor Summary
Constructors Constructor Description AbstractMethodWrapper(java.lang.reflect.Method executeMethod, java.lang.reflect.Method annotatedMethod, ResourceClass resourceClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean entityAllowed, java.util.logging.Logger logger)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetName()Deprecated.Returns the name of the methodPathRegExpgetPathRegExp()Deprecated.ResourceClassgetResourceClass()Deprecated.(package private) java.lang.ObjectinternalInvoke(ResourceObject resourceObject)Deprecated.Invokes the method and returned the created representation for the response.java.lang.StringtoString()Deprecated.
-
-
-
Field Detail
-
executeMethod
final java.lang.reflect.Method executeMethod
Deprecated.the Java method that should be called. This method could be different from the method containing the annotations, see section 3.6 "Annotation Inheritance" of JSR-311-spec.- See Also:
ResourceMethod.annotatedMethod
-
parameters
final ParameterList parameters
Deprecated.
-
resourceClass
final ResourceClass resourceClass
Deprecated.
-
-
Constructor Detail
-
AbstractMethodWrapper
AbstractMethodWrapper(java.lang.reflect.Method executeMethod, java.lang.reflect.Method annotatedMethod, ResourceClass resourceClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, boolean entityAllowed, java.util.logging.Logger logger) throws IllegalPathOnMethodException, java.lang.IllegalArgumentException, MissingAnnotationException, IllegalMethodParamTypeException, IllegalPathParamTypeExceptionDeprecated.- Parameters:
executeMethod-annotatedMethod-resourceClass-tlContext-jaxRsProviders-extensionBackwardMapping-entityAllowed-logger-- Throws:
IllegalPathOnMethodExceptionjava.lang.IllegalArgumentException- if the annotated method is nullMissingAnnotationExceptionIllegalMethodParamTypeException- if one of the parameters annotated with @Contexthas a type that must not be annotated with @Context.IllegalPathParamTypeException
-
-
Method Detail
-
getName
public java.lang.String getName()
Deprecated.Returns the name of the method- Returns:
- Returns the name of the method
-
getPathRegExp
public PathRegExp getPathRegExp()
Deprecated.- Overrides:
getPathRegExpin classAbstractJaxRsWrapper- Returns:
- Returns the regular expression for the URI template
-
getResourceClass
public ResourceClass getResourceClass()
Deprecated.- Returns:
- Returns the resource class of this method.
-
internalInvoke
java.lang.Object internalInvoke(ResourceObject resourceObject) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, ConvertRepresentationException, javax.ws.rs.WebApplicationException
Deprecated.Invokes the method and returned the created representation for the response.- Parameters:
resourceObject-- Returns:
- the unwrapped returned object by the wrapped method.
- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.IllegalAccessExceptionjava.lang.IllegalArgumentExceptionjava.lang.reflect.InvocationTargetExceptionjavax.ws.rs.WebApplicationExceptionConvertRepresentationException
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-