Package org.apache.juneau.httppart.bean
Class ResponseBeanMeta
java.lang.Object
org.apache.juneau.httppart.bean.ResponseBeanMeta
Represents the metadata gathered from a parameter or class annotated with
Response.
See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseBeanMetacreate(Type t, AnnotationWorkList annotations) Create metadata from specified class.static ResponseBeanMetacreate(MethodInfo m, AnnotationWorkList annotations) Create metadata from specified method return.static ResponseBeanMetacreate(ParameterInfo mpi, AnnotationWorkList annotations) Create metadata from specified method parameter.ClassMeta<?>Returns metadata about the class.intgetCode()Returns the HTTP status code.Returns the@Content -annotated method.Returns metadata about the@Header -annotated methods.Returns the part serializer to use to serialize this response.Returns all the annotated methods on this bean.getProperty(String name) Returns metadata about the bean property with the specified method getter name.Returns the schema information about the response object.Returns the@StatusCode -annotated method.
-
Field Details
-
NULL
Represents a non-existent meta object.
-
-
Method Details
-
create
Create metadata from specified method return. -
create
Create metadata from specified method parameter.- Parameters:
mpi- The method parameter.annotations- The annotations to apply to any new part serializers or parsers.- Returns:
- Metadata about the class, or
null if class not annotated withResponse.
-
create
Create metadata from specified class. -
getClassMeta
Returns metadata about the class.- Returns:
- Metadata about the class.
-
getCode
Returns the HTTP status code.- Returns:
- The HTTP status code.
-
getContentMethod
Returns the@Content -annotated method.- Returns:
- The
@Content -annotated method, ornull if it doesn't exist.
-
getHeaderMethods
Returns metadata about the@Header -annotated methods.- Returns:
- Metadata about the
@Header -annotated methods, or an empty collection if none exist.
-
getPartSerializer
Returns the part serializer to use to serialize this response.- Returns:
- The part serializer to use to serialize this response.
-
getProperties
Returns all the annotated methods on this bean.- Returns:
- All the annotated methods on this bean.
-
getProperty
Returns metadata about the bean property with the specified method getter name.- Parameters:
name- The bean method getter name.- Returns:
- Metadata about the bean property, or
null if none found.
-
getSchema
Returns the schema information about the response object.- Returns:
- The schema information about the response object.
-
getStatusMethod
Returns the@StatusCode -annotated method.- Returns:
- The
@StatusCode -annotated method, ornull if it doesn't exist.
-