Search in sources :

Example 16 with RuntimeDelegate

use of jakarta.ws.rs.ext.RuntimeDelegate in project jaxrs-api by eclipse-ee4j.

the class ReturnTypeTest method nullEntityResponse.

@GET
@Path("nullEntityResponse")
public Response nullEntityResponse() {
    RuntimeDelegate rd = RuntimeDelegate.getInstance();
    ResponseBuilder rb = rd.createResponseBuilder();
    return rb.entity(null).build();
}
Also used : ResponseBuilder(jakarta.ws.rs.core.Response.ResponseBuilder) RuntimeDelegate(jakarta.ws.rs.ext.RuntimeDelegate) Path(jakarta.ws.rs.Path) GET(jakarta.ws.rs.GET)

Aggregations

RuntimeDelegate (jakarta.ws.rs.ext.RuntimeDelegate)16 StringBeanRuntimeDelegate (ee.jakarta.tck.ws.rs.common.provider.StringBeanRuntimeDelegate)10 Test (org.junit.jupiter.api.Test)8 Response (jakarta.ws.rs.core.Response)7 StringBean (ee.jakarta.tck.ws.rs.common.provider.StringBean)6 GET (jakarta.ws.rs.GET)6 Path (jakarta.ws.rs.Path)6 ClientRequestContext (jakarta.ws.rs.client.ClientRequestContext)3 ResponseBuilder (jakarta.ws.rs.core.Response.ResponseBuilder)3 Invocation (jakarta.ws.rs.client.Invocation)2 HttpHandler (com.sun.net.httpserver.HttpHandler)1 TckRuntimeDelegate (ee.jakarta.tck.ws.rs.api.rs.ext.runtimedelegate.TckRuntimeDelegate)1 ReadableWritableEntity (ee.jakarta.tck.ws.rs.ee.rs.ext.messagebodyreaderwriter.ReadableWritableEntity)1 ClientResponseContext (jakarta.ws.rs.client.ClientResponseContext)1 Application (jakarta.ws.rs.core.Application)1 HashSet (java.util.HashSet)1