|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedExecutableDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration
org.codehaus.enunciate.contract.jaxrs.ResourceMethod
public class ResourceMethod
A JAX-RS resource method.
| Field Summary |
|---|
| Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration |
|---|
INHERITDOC_PATTERN |
| Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedExecutableDeclaration |
|---|
paramsComments, throwsComments |
| Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
|---|
delegate, javaDoc |
| Constructor Summary | |
|---|---|
ResourceMethod(com.sun.mirror.declaration.MethodDeclaration delegate,
Resource parent)
|
|
| Method Summary | |
|---|---|
java.util.List<ResourceMethodMediaType> |
getApplicableMediaTypes()
The applicable media types for this resource. |
java.util.Set<java.lang.String> |
getConsumesMime()
The MIME types that are consumed by this method. |
java.util.List<ResourceEntityParameter> |
getDeclaredEntityParameters()
The entity parameters that were declared. |
ResourceEntityParameter |
getEntityParameter()
The entity parameter. |
java.lang.String |
getFullpath()
Builds the full URI path to this resource method. |
java.util.Set<java.lang.String> |
getHttpMethods()
The HTTP methods for invoking the method. |
java.util.Map<java.lang.String,java.lang.Object> |
getMetaData()
The metadata associated with this resource. |
Resource |
getParent()
The resource that holds this resource method. |
java.util.Set<java.lang.String> |
getProducesMime()
The MIME types that are produced by this method. |
ResourceRepresentationMetadata |
getRepresentationMetadata()
The output payload for this resource. |
java.util.List<ResourceParameter> |
getResourceParameters()
The list of resource parameters that this method requires to be invoked. |
java.lang.String |
getServletPattern()
The servlet pattern that can be applied to access this resource method. |
java.util.List<? extends ResponseCode> |
getStatusCodes()
The potential status codes. |
java.lang.String |
getSubpath()
The subpath for this resource method, if it exists. |
protected ResourceEntityParameter |
loadEntityParameter(ResourceMethodSignature signatureOverride)
Loads the specified entity parameter according to the method signature override. |
protected ResourceRepresentationMetadata |
loadOutputPayload(ResourceMethodSignature signatureOverride)
Loads the explicit output payload. |
protected java.util.List<ResourceParameter> |
loadResourceParameters(ResourceMethodSignature signatureOverride)
Loads the overridden resource parameter values. |
void |
putMetaData(java.lang.String name,
java.lang.Object data)
Put metadata associated with this resource. |
protected java.lang.String |
scrubParamNames(java.lang.String subpath)
Scrubs the path parameters names from the specified subpath. |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration |
|---|
accept, commentNeedsReplacement, constructJavaDoc, getPropertyName, getReturnType, isGetter, isSetter |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedExecutableDeclaration |
|---|
getFormalTypeParameters, getParameters, getThrownTypes, isVarArgs, parseParamComments |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration |
|---|
getDeclaringType |
| Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
|---|
equals, getAnnotation, getAnnotationMirrors, getAnnotations, getDelegate, getDocComment, getDocValue, getJavaDoc, getModifiers, getPosition, getSimpleName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.sun.mirror.declaration.ExecutableDeclaration |
|---|
getFormalTypeParameters, getParameters, getThrownTypes, isVarArgs |
| Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration |
|---|
getDeclaringType |
| Methods inherited from interface com.sun.mirror.declaration.Declaration |
|---|
equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleName |
| Constructor Detail |
|---|
public ResourceMethod(com.sun.mirror.declaration.MethodDeclaration delegate,
Resource parent)
| Method Detail |
|---|
protected ResourceRepresentationMetadata loadOutputPayload(ResourceMethodSignature signatureOverride)
signatureOverride - The method signature override.
protected java.util.List<ResourceParameter> loadResourceParameters(ResourceMethodSignature signatureOverride)
signatureOverride - The signature override.
protected ResourceEntityParameter loadEntityParameter(ResourceMethodSignature signatureOverride)
signatureOverride - The signature override.
public java.util.Set<java.lang.String> getHttpMethods()
public java.lang.String getFullpath()
public java.lang.String getServletPattern()
protected java.lang.String scrubParamNames(java.lang.String subpath)
subpath - The subpath.
public java.lang.String getSubpath()
public Resource getParent()
public java.util.Set<java.lang.String> getConsumesMime()
public java.util.Set<java.lang.String> getProducesMime()
public java.util.List<ResourceParameter> getResourceParameters()
public ResourceEntityParameter getEntityParameter()
public java.util.List<ResourceEntityParameter> getDeclaredEntityParameters()
public java.util.List<ResourceMethodMediaType> getApplicableMediaTypes()
public ResourceRepresentationMetadata getRepresentationMetadata()
public java.util.List<? extends ResponseCode> getStatusCodes()
public java.util.Map<java.lang.String,java.lang.Object> getMetaData()
public void putMetaData(java.lang.String name,
java.lang.Object data)
name - The name of the metadata.data - The data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||