Class SubResourceLocator
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractJaxRsWrapper
-
- org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper
-
- org.restlet.ext.jaxrs.internal.wrappers.SubResourceLocator
-
- All Implemented Interfaces:
ResourceMethodOrLocator,RrcOrRml
@Deprecated public class SubResourceLocator extends AbstractMethodWrapper implements ResourceMethodOrLocator
Deprecated.Will be removed in next minor release.A method of a resource class that is used to locate sub-resources of the corresponding resource, see section 3.3.1. of the JAX-RS specification.
-
-
Field Summary
-
Fields inherited from class org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper
executeMethod, parameters, resourceClass
-
-
Constructor Summary
Constructors Constructor Description SubResourceLocator(java.lang.reflect.Method javaMethod, java.lang.reflect.Method annotatedMethod, ResourceClass resourceClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger)Deprecated.Creates a new wrapper for the given sub resource locator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ResourceObjectcreateSubResource(ResourceObject resourceObject, ResourceClasses resourceClasses, java.util.logging.Logger logger)Deprecated.Creates a sub resource-
Methods inherited from class org.restlet.ext.jaxrs.internal.wrappers.AbstractMethodWrapper
getName, getPathRegExp, getResourceClass, internalInvoke, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.restlet.ext.jaxrs.internal.wrappers.ResourceMethodOrLocator
getName, getPathRegExp, getResourceClass
-
-
-
-
Constructor Detail
-
SubResourceLocator
SubResourceLocator(java.lang.reflect.Method javaMethod, java.lang.reflect.Method annotatedMethod, ResourceClass resourceClass, ThreadLocalizedContext tlContext, JaxRsProviders jaxRsProviders, ExtensionBackwardMapping extensionBackwardMapping, java.util.logging.Logger logger) throws IllegalPathOnMethodException, java.lang.IllegalArgumentException, MissingAnnotationException, IllegalMethodParamTypeException, IllegalPathParamTypeExceptionDeprecated.Creates a new wrapper for the given sub resource locator.- Parameters:
javaMethod- The Java method which creats the sub resourceannotatedMethod- the message containing the annotations for this sub resource locator.resourceClass- the wrapped resource class.tlContext- theThreadLocalizedContextof theJaxRsRestlet.jaxRsProviders- all providersextensionBackwardMapping- the extension backward mappinglogger-- Throws:
IllegalPathOnMethodExceptionMissingAnnotationExceptionjava.lang.IllegalArgumentException- if the annotated method is nullIllegalPathParamTypeExceptionIllegalMethodParamTypeException
-
-
Method Detail
-
createSubResource
public ResourceObject createSubResource(ResourceObject resourceObject, ResourceClasses resourceClasses, java.util.logging.Logger logger) throws java.lang.reflect.InvocationTargetException, javax.ws.rs.WebApplicationException, InstantiateException, ConvertRepresentationException, java.lang.IllegalArgumentException, MissingAnnotationException
Deprecated.Creates a sub resource- Parameters:
resourceObject- the wrapped resource object.resourceClasses- factory to create wrappers.logger- The logger to use- Returns:
- Returns the wrapped sub resource object.
- Throws:
java.lang.reflect.InvocationTargetExceptionNoMessageBodyReaderExceptionjavax.ws.rs.WebApplicationExceptionMissingAnnotationExceptionInstantiateExceptionConvertCookieParamExceptionConvertQueryParamExceptionConvertMatrixParamExceptionConvertPathParamExceptionConvertHeaderParamExceptionConvertRepresentationExceptionMissingAnnotationExceptionjava.lang.IllegalArgumentException
-
-