use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.
the class AnalyticsProcessTest method getPostRequestWithJsonContentTypeHeader.
private ContainerRequest getPostRequestWithJsonContentTypeHeader() {
InBoundHeaders headers = new InBoundHeaders();
headers.add(HttpHeaders.CONTENT_TYPE, "application/json");
headers.add(HttpHeaders.ACCEPT, MediaType.APPLICATION_XML);
headers.add(HttpHeaders.USER_AGENT, "blah");
return new ContainerRequest(new WebApplicationImpl(), "POST", 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);
}
use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.
the class AnalyticsProcessTest method getPostRequestWithXmlContentTypeHeader.
private ContainerRequest getPostRequestWithXmlContentTypeHeader() {
InBoundHeaders headers = new InBoundHeaders();
headers.add(HttpHeaders.CONTENT_TYPE, OrcidApiConstants.ORCID_XML);
headers.add(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON);
headers.add(HttpHeaders.USER_AGENT, "blah");
return new ContainerRequest(new WebApplicationImpl(), "POST", 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);
}
use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.
the class AnalyticsProcessTest method getRequestWithNoContentType.
private ContainerRequest getRequestWithNoContentType() {
InBoundHeaders headers = new InBoundHeaders();
headers.add(HttpHeaders.USER_AGENT, "blah");
return new ContainerRequest(new WebApplicationImpl(), "POST", URI.create("https://localhost:8443/orcid-api-web/"), URI.create("https://localhost:8443/orcid-api-web/v2.0/1234-4321-1234-4321/works"), headers, null);
}
use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.
the class AnalyticsProcessTest method getGetRequestWithJsonContentTypeHeader.
private ContainerRequest getGetRequestWithJsonContentTypeHeader() {
InBoundHeaders headers = new InBoundHeaders();
headers.add(HttpHeaders.CONTENT_TYPE, OrcidApiConstants.ORCID_JSON);
headers.add(HttpHeaders.USER_AGENT, "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);
}
use of com.sun.jersey.server.impl.application.WebApplicationImpl in project ORCID-Source by ORCID.
the class AnalyticsProcessTest method getPostRequestWithUnknownContentTypeHeader.
private ContainerRequest getPostRequestWithUnknownContentTypeHeader() {
InBoundHeaders headers = new InBoundHeaders();
headers.add(HttpHeaders.CONTENT_TYPE, "something/weird");
headers.add(HttpHeaders.ACCEPT, "application/xml");
headers.add(HttpHeaders.USER_AGENT, "blah");
return new ContainerRequest(new WebApplicationImpl(), "POST", 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);
}
Aggregations