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 . |
newInstance
public ResteasyGenericResponseBuilderFactory()
ResteasyGenericResponseBuilderFactory
.
This default constructor is required for use with ServiceLoader
.
public <T> GenericResponseBuilder<T> create(int status)
GenericResponseBuilderFactory
GenericResponseBuilder
with the given status.create
in class GenericResponseBuilderFactory
public <T> GenericResponseBuilder<T> create(int status, T body)
GenericResponseBuilderFactory
GenericResponseBuilder
with the given status and entity
body.create
in class GenericResponseBuilderFactory
public <T> GenericResponseBuilder<T> create(int status, T body, Annotation[] annotations)
GenericResponseBuilderFactory
GenericResponseBuilder
.create
in class GenericResponseBuilderFactory
T
- 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 MessageBodyWriter
Copyright © 2020 Cerner Innovation, Inc.. All rights reserved.