Package eu.scape_project.watch.domain

Examples of eu.scape_project.watch.domain.AsyncRequest


        final Client clientWithJacksonSerializer = Client.create(cc);
        clientWithJacksonSerializer.addFilter(new LoggingFilter());
        clientWithJacksonSerializer.addFilter(new HTTPBasicAuthFilter(watchUser, watchPassword));
        WebResource resource = clientWithJacksonSerializer.resource(watchEndpoint);

        final AsyncRequest areq = new AsyncRequest("monitor plan: " + plan.getPlanProperties().getName(), triggers);
        final AsyncRequest areq2 = resource.path(KBUtils.ASYNC_REQUEST + ".json/new").accept(MediaType.APPLICATION_JSON)
                .post(AsyncRequest.class, areq);
      } catch (Exception e) {
        throw new PlanningException("Failed to access endpoint.", e);
      }
      } else {
View Full Code Here

TOP

Related Classes of eu.scape_project.watch.domain.AsyncRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.