Examples of status()


Examples of com.dyn.client.v3.messaging.features.RecipientsApi.status()

    System.out.println("accounts xheaders : " + accounts.getXHeaders());

    RecipientsApi recipients = dyn.getRecipientsApi();

    System.out.println("recipient status : "
        + recipients.status("recip@example.com"));
    System.out.println("recipient activate : "
        + recipients.activate("recip@example.com"));

    Map<String, ReportApi> apis = ImmutableMap
        .<String, ReportApi> builder()
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.jetty.client.HttpResponse.status()

    {
        HttpExchange exchange = getHttpExchange();
        if (exchange != null)
        {
            HttpResponse response = exchange.getResponse();
            response.status(status).reason(reason);
            failAndClose(new HttpResponseException("HTTP protocol violation: bad response", response));
        }
    }

    @Override
View Full Code Here

Examples of com.foundationdb.rest.RestResponseBuilder.status()

    @Produces(MEDIATYPE_JSON_JAVASCRIPT)
    public Response addUser(@Context HttpServletRequest request,
                            byte[] userBytes) throws Exception {
        RestResponseBuilder response = RestResponseBuilder.forRequest(request);
        if (!request.isUserInRole(SecurityService.ADMIN_ROLE)) {
            return response.status(Response.Status.FORBIDDEN).build();
        }
        JsonNode node = readTree(userBytes);
        JsonNode userNode = node.get("user");
        JsonNode passwordNode = node.get("password");
        JsonNode rolesNode = node.get("roles");
View Full Code Here

Examples of com.google.sitebricks.client.WebResponse.status()

            .clientOf(AcceptanceTest.baseUrl() + "/serviceWithGenerics")
            .transports(new TypeLiteral<List<Person>>() { })
            .over(Json.class)
            .post(personList);

    assert HttpServletResponse.SC_OK == response.status();

    List<Person> result = response.to(new TypeLiteral<List<Person>>() {}).using(Json.class);
    assert result.size() == 1;
    assert "John Smith".equals(result.get(0).getName());
  }
View Full Code Here

Examples of com.googlecode.utterlyidle.Response.status()

    @Test
    public void shouldReturnResultForGivenExpression() throws Exception {
        Response response = client.handle(post(url("execute")).form("expression", "life = 42").build());

        assertThat(response.status(), is(Status.OK));
        assertThat(body(response),
                is(model()
                        .add("expression", "life = 42")
                        .add("logs", asList(model().add("message", "java.lang.Integer life = 42").add("type", "SUCCESS")))));
    }
View Full Code Here

Examples of com.jcabi.http.response.RestResponse.status()

    public boolean exists(final String path, final String ref)
        throws IOException {
        final RestResponse response = this.request.method(Request.GET)
            .uri().path(path).queryParam("ref", ref).back()
            .fetch().as(RestResponse.class);
        return response.status() == HttpURLConnection.HTTP_OK;
    }

    /**
     * Get the contents of a file or symbolic link in a repository.
     * @param path The content path
View Full Code Here

Examples of com.sissi.context.JIDContext.status()

public class LastJIDProcessor extends ProxyProcessor {

  @Override
  public boolean input(JIDContext context, Protocol protocol) {
    JIDContext to = super.findOne(protocol.parent().to() ? super.build(protocol.parent().getTo()) : context.jid(), true);
    context.write(protocol.cast(Last.class).seconds().seconds(to.idle()).text(to.status().clauses().find(StatusClauses.KEY_STATUS)).parent().reply().setType(ProtocolType.RESULT));
    return false;
  }
}
View Full Code Here

Examples of com.squareup.pagerduty.incidents.NotifyResult.status()

            }
        } catch (Exception e) {
            throw new NotificationFailedException("Failed to send notification to PagerDuty", e);
        }

        if (result != null && !"success".equals(result.status())) {
            throw new NotificationFailedException("Failed to send notification to PagerDuty: '" + result.status() + "', " + result.message());
        }
    }

    private Map<String, String> details(Check check, List<Alert> alerts) throws JsonProcessingException {
View Full Code Here

Examples of com.webobjects.appserver.WOResponse.status()

      if (requestSucceeded) {
        aResponse = anHTTPConnection.readResponse();
      }

      if ((aResponse == null) || (!requestSucceeded) || (aResponse.status() != 200)) {
        throw new MonitorException("Error requesting directory listing for " + aString + " from " + aHost.name());
      }

      try {
        aFileListDictionary = _getFileListOutOfResponse(aResponse, aString);
View Full Code Here

Examples of fr.esrf.TangoApi.DeviceProxy.status()

                        synchronized (m_stateList) {
                            m_stateNumberList.put(deviceName, Integer.valueOf(devState.value()));
                        }
                    }

                    status = deviceProxy.status();
                    if (status != null) {
                        synchronized (m_statusList) {
                            m_statusList.put(deviceName, status);
                        }
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.