public class ResponseBeanMeta extends Object
Response
.Modifier and Type | Field and Description |
---|---|
static ResponseBeanMeta |
NULL
Represents a non-existent meta object.
|
Modifier and Type | Method and Description |
---|---|
static ResponseBeanMeta |
create(MethodInfo m,
PropertyStore ps)
Create metadata from specified method return.
|
static ResponseBeanMeta |
create(ParamInfo mpi,
PropertyStore ps)
Create metadata from specified method parameter.
|
static ResponseBeanMeta |
create(Type t,
PropertyStore ps)
Create metadata from specified class.
|
ResponseBeanPropertyMeta |
getBodyMethod()
Returns the
|
ClassMeta<?> |
getClassMeta()
Returns metadata about the class.
|
int |
getCode()
Returns the HTTP status code.
|
Collection<ResponseBeanPropertyMeta> |
getHeaderMethods()
Returns metadata about the
|
HttpPartSerializer |
getPartSerializer()
Returns the part serializer to use to serialize this response.
|
Collection<ResponseBeanPropertyMeta> |
getProperties()
Returns all the annotated methods on this bean.
|
ResponseBeanPropertyMeta |
getProperty(String name)
Returns metadata about the bean property with the specified method getter name.
|
HttpPartSchema |
getSchema()
Returns the schema information about the response object.
|
ResponseBeanPropertyMeta |
getStatusMethod()
Returns the
|
public static ResponseBeanMeta NULL
public static ResponseBeanMeta create(Type t, PropertyStore ps)
public static ResponseBeanMeta create(MethodInfo m, PropertyStore ps)
public static ResponseBeanMeta create(ParamInfo mpi, PropertyStore ps)
mpi
- The method parameter.ps
- Configuration information used to instantiate part serializers and part parsers.
Response
.public int getCode()
public HttpPartSchema getSchema()
public Collection<ResponseBeanPropertyMeta> getHeaderMethods()
public ResponseBeanPropertyMeta getBodyMethod()
public ResponseBeanPropertyMeta getStatusMethod()
public HttpPartSerializer getPartSerializer()
public ClassMeta<?> getClassMeta()
public ResponseBeanPropertyMeta getProperty(String name)
name
- The bean method getter name.public Collection<ResponseBeanPropertyMeta> getProperties()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.