public class ResteasyGenericResponseBuilderFactory extends GenericResponseBuilderFactory
GenericResponseBuilderFactory for Resteasy.| Constructor and Description |
|---|
ResteasyGenericResponseBuilderFactory()
Creates a new instance of
ResteasyGenericResponseBuilderFactory. |
| Modifier and Type | Method and Description |
|---|---|
<T> GenericResponseBuilder<T> |
create(int status)
Creates a new instance of
GenericResponseBuilder with the given status. |
<T> GenericResponseBuilder<T> |
create(int status,
T body)
Creates a new instance of
GenericResponseBuilder with the given status and entity
body. |
<T> GenericResponseBuilder<T> |
create(int status,
T body,
Annotation[] annotations)
Creates a new instance of
GenericResponseBuilder. |
newInstancepublic ResteasyGenericResponseBuilderFactory()
ResteasyGenericResponseBuilderFactory.
This default constructor is required for use with ServiceLoader.
public <T> GenericResponseBuilder<T> create(int status)
GenericResponseBuilderFactoryGenericResponseBuilder with the given status.create in class GenericResponseBuilderFactorypublic <T> GenericResponseBuilder<T> create(int status, T body)
GenericResponseBuilderFactoryGenericResponseBuilder with the given status and entity
body.create in class GenericResponseBuilderFactorypublic <T> GenericResponseBuilder<T> create(int status, T body, Annotation[] annotations)
GenericResponseBuilderFactoryGenericResponseBuilder.create in class GenericResponseBuilderFactoryT - the type of the entity bodystatus - the status for the new response builderbody - the entity body for the new response builderannotations - annotations, in addition to the annotations on the resource method
returning the response, to be passed to the MessageBodyWriterCopyright © 2020 Cerner Innovation, Inc.. All rights reserved.