Search in sources :

Example 16 with WebApplicationImpl

use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.

the class AnalyticsProcessTest method getGetRequestWithXmlContentTypeHeader.

private ContainerRequest getGetRequestWithXmlContentTypeHeader() {
    InBoundHeaders headers = new InBoundHeaders();
    headers.add(HttpHeaders.ACCEPT, OrcidApiConstants.VND_ORCID_XML);
    headers.add(HttpHeaders.CONTENT_TYPE, "blah");
    return new ContainerRequest(new WebApplicationImpl(), "GET", URI.create("https://localhost:8443/orcid-api-web/"), URI.create("http://localhost:8443/orcid-api-web/v2.0/1234-4321-1234-4321/works"), headers, null);
}
Also used : InBoundHeaders(com.sun.jersey.core.header.InBoundHeaders) WebApplicationImpl(com.sun.jersey.server.impl.application.WebApplicationImpl) ContainerRequest(com.sun.jersey.spi.container.ContainerRequest)

Aggregations

WebApplicationImpl (com.sun.jersey.server.impl.application.WebApplicationImpl)16 InBoundHeaders (com.sun.jersey.core.header.InBoundHeaders)15 ContainerRequest (com.sun.jersey.spi.container.ContainerRequest)15 ContainerResponse (com.sun.jersey.spi.container.ContainerResponse)1