Java Code Examples for org.jboss.resteasy.specimpl.MultivaluedMapImpl#putAll()
The following examples show how to use
org.jboss.resteasy.specimpl.MultivaluedMapImpl#putAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryExecutorBean.java From datawave with Apache License 2.0 | 5 votes |
@GET @Path("/lookupContentUUID/{uuidType}/{uuid}") @Produces({"application/xml", "text/xml", "application/json", "text/yaml", "text/x-yaml", "application/x-yaml", "application/x-protobuf", "application/x-protostuff"}) @Interceptors({RequiredInterceptor.class, ResponseInterceptor.class}) @Override @Timed(name = "dw.query.lookupContentUUID", absolute = true) public <T> T lookupContentByUUID(@Required("uuidType") @PathParam("uuidType") String uuidType, @Required("uuid") @PathParam("uuid") String uuid, @Context UriInfo uriInfo, @Required("httpHeaders") @Context HttpHeaders httpHeaders) { MultivaluedMapImpl<String,String> queryParameters = new MultivaluedMapImpl<>(); queryParameters.putAll(uriInfo.getQueryParameters()); return this.lookupContentByUUID(uuidType, uuid, queryParameters, httpHeaders); }
Example 2
Source File: QueryExecutorBean.java From datawave with Apache License 2.0 | 5 votes |
@GET @Produces({"application/xml", "text/xml", "application/json", "text/yaml", "text/x-yaml", "application/x-yaml", "application/x-protobuf", "application/x-protostuff"}) @Path("/lookupUUID/{uuidType}/{uuid}") @Interceptors({RequiredInterceptor.class, ResponseInterceptor.class}) @Override @Timed(name = "dw.query.lookupUUID", absolute = true) public <T> T lookupUUID(@Required("uuidType") @PathParam("uuidType") String uuidType, @Required("uuid") @PathParam("uuid") String uuid, @Context UriInfo uriInfo, @Required("httpHeaders") @Context HttpHeaders httpHeaders) { MultivaluedMapImpl<String,String> queryParameters = new MultivaluedMapImpl<>(); queryParameters.putAll(uriInfo.getQueryParameters()); return this.lookupUUID(uuidType, uuid, queryParameters, httpHeaders); }