Examples of Status


Examples of org.restlet.data.Status

  @Override
  public Status getStatus(Throwable throwable, Request request, Response response) {
    if (throwable instanceof ErrorInfoException) {
      ErrorInfo errInfo = ((ErrorInfoException)throwable).getErrorInfo();
      response.setEntity(new StringRepresentation(errInfo.toString(), TEXT_PLAIN, Language.ALL, UTF_8));
      return new Status(CLIENT_ERROR_BAD_REQUEST, errInfo.getErrorType().getLabel());
    }
    else {
      return super.getStatus(throwable, request, response);
    }
  }
View Full Code Here

Examples of org.rhq.core.domain.bundle.BundleResourceDeploymentHistory.Status

            // see org.rhq.bundle.ant.task.AuditTask.execute()
            // RHQ_AUDIT_MESSAGE___<status>___<action>___<info>___<message>___<details>
            String[] eventStrings = event.getMessage().split("___");
            int index = 0;
            if (eventStrings[index++].equals("RHQ_AUDIT_MESSAGE")) {
                Status status = Status.SUCCESS;
                String action = "Audit Message";
                String info = "Recipe Audit Message";
                String message = new Date().toString();
                String details = null;
View Full Code Here

Examples of org.rhq.enterprise.server.rest.domain.Status

    @GET
    @Path("/")
    public Response getStatus(@Context HttpHeaders httpHeaders) throws Exception{

        Map<String,String> statusMap = infoMgr.getSystemInformation(caller);
        Status status = new Status();
        status.setValues(statusMap);

        MediaType mediaType = httpHeaders.getAcceptableMediaTypes().get(0);
        Response.ResponseBuilder builder;
        if (mediaType.equals(MediaType.TEXT_HTML_TYPE)) {
            String htmlString = renderTemplate("status", status);
View Full Code Here

Examples of org.rhq.server.control.command.Status

    public Commands() {
        registerCommand(new Install());
        registerCommand(new Start());
        registerCommand(new Stop());
        registerCommand(new Restart());
        registerCommand(new Status());
        registerCommand(new Console());
        // Add the service removal command only on windows
        if (File.separatorChar == '\\') {
            registerCommand(new Remove());
        }
View Full Code Here

Examples of org.richfaces.renderkit.ForEachLoop.Status

        ForEachLoop<Integer> loop = ForEachLoop.getInstance(array);

        Set<Integer> iterated = asSet();

        for (int i : loop) {
            @SuppressWarnings("rawtypes")
            Status status = loop.getStatus();

            assertEquals("current [" + i + "]", i, status.getCurrent());
            assertEquals("count [" + i + "]", i, status.getCount());
            assertEquals("index [" + i + "]", i - 1, status.getIndex());

            assertEquals("isFirst [" + i + "]", i == 1, status.isFirst());
            assertEquals("isLast [" + i + "]", i == 15, status.isLast());

            assertNull("begin [" + i + "]", status.getBegin());
            assertNull("end [" + i + "]", status.getEnd());
            assertNull("step [" + i + "]", status.getStep());

            iterated.add(i);
        }

        assertEquals("iterated", asSet(array), iterated);
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.routing.Status

  }

  @Test
  public void checkPublicGroupResponse() {
    // public
    final Status publicStatus = routing().getStatus("public");
    assertThat(publicStatus.getPublishedStatus(), equalTo(Outcome.FAILED));
    assertThat(publicStatus.getDiscoveryStatus(), is(nullValue()));
  }
View Full Code Here

Examples of org.springframework.boot.actuate.health.Status

      // Shouldn't happen because the request mapping should not be registered
      return new ResponseEntity<Map<String, String>>(Collections.singletonMap(
          "message", "This endpoint is disabled"), HttpStatus.NOT_FOUND);
    }
    Health health = getHealth(principal);
    Status status = health.getStatus();
    if (this.statusMapping.containsKey(status.getCode())) {
      return new ResponseEntity<Health>(health, this.statusMapping.get(status
          .getCode()));
    }
    return health;
  }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.VisualItem.Status

     * Updates the graph node to reflect the style and values of the underlying
     * resource item.
     */
    // TODO expose border color, node color, font weight, font color as slots
    public void updateNode() {
        Status highlighStatus = visualItem.getStatus(Subset.HIGHLIGHTED);
        Status selectionStatus = visualItem.getStatus(Subset.SELECTED);

        boolean isHighlighted = Status.PARTIAL == highlighStatus
                || Status.FULL == highlighStatus;
        boolean isSelected = Status.PARTIAL == selectionStatus
                || Status.FULL == selectionStatus;
View Full Code Here

Examples of org.tuckey.web.filters.urlrewrite.Status

     * @throws java.io.IOException
     *             if the output cannot be written
     */
    protected void showStatus(HttpServletRequest request, HttpServletResponse response)
            throws IOException {
        Status status = new Status(urlRewriteService.getEngine().getConf());
        status.displayStatusInContainer(request);
        response.setContentType("text/html; charset=UTF-8");
        response.setContentLength(status.getBuffer().length());
        final PrintWriter out = response.getWriter();
        out.write(status.getBuffer().toString());
        out.close();
    }
View Full Code Here

Examples of org.wso2.xkms2.Status

            request.setAuthentication(authentication);

            RecoverKeyBinding keyBinding = createRecoverKeyBinding();
            keyBinding.setKeyName(alias);

            Status status = new Status();
            status.setStatusValue(StatusValue.INDETERMINATE);
            keyBinding.setStatus(status);

            request.setRecoverKeyBinding(keyBinding);

            request.addRespondWith(RespondWith.PRIVATE_KEY);
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.