org.exoplatform.services.rest.container
Class HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor

java.lang.Object
  extended by org.exoplatform.services.rest.container.HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor
All Implemented Interfaces:
ResourceDescriptor
Enclosing class:
HTTPAnnotatedContainerResolvingStrategy

public final class HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor
extends Object
implements ResourceDescriptor

Consists information about ResourceContainer.


Constructor Summary
HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor(Method method, String httpMethodName, String uri, ResourceContainer resourceContainer)
           
 
Method Summary
 String getAcceptableMethod()
          HTTP method for serving by ResourceContainer.
 String getConsumedMimeTypes()
          Describe mimetype(s) which RessourceContainer can consume.
 Class<? extends InputEntityTransformer> getInputTransformerType()
          Return Class of InputEntityTransformer.
 Annotation[] getMethodParameterAnnotations()
          Return the array of annotation for method parameters.
 Class<?>[] getMethodParameters()
          Return the array of types method parameters.
 Class<? extends OutputEntityTransformer> getOutputTransformerType()
          Return Class of OutputEntityTransformer.
 String getProducedMimeTypes()
          Describe mimetype(s) which RessourceContainer can produce.
 MultivaluedMetadata getQueryPattern()
          
 ResourceContainer getResourceContainer()
          Object of ResourecContainer.
 Method getServer()
          Method of ResourceContainer object.
 URIPattern getURIPattern()
          Return URIPattern object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor

public HTTPAnnotatedContainerResolvingStrategy.HTTPResourceDescriptor(Method method,
                                                                      String httpMethodName,
                                                                      String uri,
                                                                      ResourceContainer resourceContainer)
Parameters:
method - the method of class ResourceContainer.
httpMethodName - HTTP method name.
uri - URI for serving by current method of ResourceContainer.
resourceContainer - ResourceContainer.
Method Detail

getResourceContainer

public ResourceContainer getResourceContainer()
Object of ResourecContainer.

Specified by:
getResourceContainer in interface ResourceDescriptor
Returns:
ResourceContainer.

getServer

public Method getServer()
Method of ResourceContainer object. Then this method may be called by ResourceDispatcher.

Specified by:
getServer in interface ResourceDescriptor
Returns:
Method.

getInputTransformerType

public Class<? extends InputEntityTransformer> getInputTransformerType()
Return Class of InputEntityTransformer. ResourceDispatcher uses this class for creation instance of InputEntityTransformer.

Specified by:
getInputTransformerType in interface ResourceDescriptor
Returns:
Class of InputEntityTransformer.

getOutputTransformerType

public Class<? extends OutputEntityTransformer> getOutputTransformerType()
Return Class of OutputEntityTransformer. ResourceDispatcher uses this class for creation instance of OutputEntityTransformer.

Specified by:
getOutputTransformerType in interface ResourceDescriptor
Returns:
Class of OutputEntityTransformer.

getMethodParameterAnnotations

public Annotation[] getMethodParameterAnnotations()
Return the array of annotation for method parameters.

Specified by:
getMethodParameterAnnotations in interface ResourceDescriptor
Returns:
method parameter annotations.

getMethodParameters

public Class<?>[] getMethodParameters()
Return the array of types method parameters.

Specified by:
getMethodParameters in interface ResourceDescriptor
Returns:
method parameters types.

getURIPattern

public URIPattern getURIPattern()
Return URIPattern object.

Specified by:
getURIPattern in interface ResourceDescriptor
Returns:
URIPattern.

getAcceptableMethod

public String getAcceptableMethod()
HTTP method for serving by ResourceContainer.

Specified by:
getAcceptableMethod in interface ResourceDescriptor
Returns:
HTTP method name.

getConsumedMimeTypes

public String getConsumedMimeTypes()
Describe mimetype(s) which RessourceContainer can consume.

Specified by:
getConsumedMimeTypes in interface ResourceDescriptor
Returns:
mimetype(s).

getProducedMimeTypes

public String getProducedMimeTypes()
Describe mimetype(s) which RessourceContainer can produce.

Specified by:
getProducedMimeTypes in interface ResourceDescriptor
Returns:
mimetype(s).

getQueryPattern

public MultivaluedMetadata getQueryPattern()

Specified by:
getQueryPattern in interface ResourceDescriptor
Returns:
MultivaluedMetadata.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.