com.cerner.beadledom.resteasy.ResteasyGenericResponseBuilderFactory Maven / Gradle / Ivy
package com.cerner.beadledom.resteasy;
import com.cerner.beadledom.jaxrs.GenericResponseBuilder;
import com.cerner.beadledom.jaxrs.GenericResponseBuilderFactory;
import java.lang.annotation.Annotation;
/**
* An implementation of {@link GenericResponseBuilderFactory} for Resteasy.
*
* @author John Leacox
* @since 1.3
*/
public class ResteasyGenericResponseBuilderFactory extends GenericResponseBuilderFactory {
/**
* Creates a new instance of {@link ResteasyGenericResponseBuilderFactory}.
*
* This default constructor is required for use with {@link java.util.ServiceLoader}.
*/
public ResteasyGenericResponseBuilderFactory() {
}
@Override
public GenericResponseBuilder create(int status) {
return ResteasyGenericResponseBuilder.create(status);
}
@Override
public GenericResponseBuilder create(int status, T body) {
return ResteasyGenericResponseBuilder.create(status, body);
}
@Override
public GenericResponseBuilder create(int status, T body, Annotation[] annotations) {
return ResteasyGenericResponseBuilder.create(status, body, annotations);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy