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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseBeanMeta
create
(Type t, AnnotationWorkList annotations) Create metadata from specified class.static ResponseBeanMeta
create
(MethodInfo m, AnnotationWorkList annotations) Create metadata from specified method return.static ResponseBeanMeta
create
(ParamInfo mpi, AnnotationWorkList annotations) Create metadata from specified method parameter.ClassMeta<?>
Returns metadata about the class.int
getCode()
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 class. -
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
.
-
getCode
Returns the HTTP status code.- Returns:
- The HTTP status code.
-
getSchema
Returns the schema information about the response object.- Returns:
- The schema information about the response object.
-
getHeaderMethods
Returns metadata about the@Header -annotated methods.- Returns:
- Metadata about the
@Header -annotated methods, or an empty collection if none exist.
-
getContentMethod
Returns the@Content -annotated method.- Returns:
- The
@Content -annotated method, ornull if it doesn't exist.
-
getStatusMethod
Returns the@StatusCode -annotated method.- Returns:
- The
@StatusCode -annotated method, ornull if it doesn't exist.
-
getPartSerializer
Returns the part serializer to use to serialize this response.- Returns:
- The part serializer to use to serialize this response.
-
getClassMeta
Returns metadata about the class.- Returns:
- Metadata about the class.
-
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.
-
getProperties
Returns all the annotated methods on this bean.- Returns:
- All the annotated methods on this bean.
-