Examples of Status


Examples of org.xnio.IoFuture.Status

        IoFuture<Connection> future;
        CallbackHandler actualHandler = handler != null ? handler : new AnonymousCallbackHandler();
        WrapperCallbackHandler wrapperHandler = new WrapperCallbackHandler(actualHandler);
        future = endpoint.connect(uri, map, wrapperHandler);

        Status status = future.await(connectTimeout, TimeUnit.MILLISECONDS);
        while (status == Status.WAITING) {
            boolean cancel = false;
            if (wrapperHandler.isInCall()) {
                // Here we know we are blocked waiting for user input so block again for the same time.
                status = future.await(connectTimeout, TimeUnit.MILLISECONDS);
View Full Code Here

Examples of play.mvc.results.Status

            // to prevent the Play-server from being vulnerable to POST hash collision DOS-attack (Denial of Service through hash table multi-collisions),
            // we should by default not parse the params into HashMap if the count exceeds a maximum limit
            if(maxParams != 0 && keyValues.length > maxParams) {
                Logger.warn("Number of request parameters %d is higher than maximum of %d, aborting. Can be configured using 'http.maxParams'", keyValues.length, maxParams);
                throw new Status(413); //413 Request Entity Too Large
            }

            for (String keyValue : keyValues) {
                // split this key-value on the first '='
                int i = keyValue.indexOf('=');
View Full Code Here

Examples of rabbit.data.store.model.BreakpointEvent.Status

      return; // Don't know what's changed.

    try {
      boolean isEnabledNow = breakpoint.isEnabled();
      if (isEnabledBefore.booleanValue() != isEnabledNow) {
        Status stat = isEnabledNow ? ENABLED : DISABLED;
        addData(new BreakpointEvent(new DateTime(), breakpoint, stat));
       
        status.put(markerId, isEnabledNow);
      }
    } catch (CoreException e) {
View Full Code Here

Examples of ratpack.http.Status

                  final Headers headers = new NettyHeadersBackedHeaders(response.headers());
                  String contentType = headers.get(HttpHeaderConstants.CONTENT_TYPE.toString());
                  ByteBuf responseBuffer = initBufferReleaseOnExecutionClose(response.content(), execution);
                  final ByteBufBackedTypedData typedData = new ByteBufBackedTypedData(responseBuffer, DefaultMediaType.get(contentType));

                  final Status status = new DefaultStatus(response.getStatus());

                  int maxRedirects = requestSpecBacking.getMaxRedirects();
                  String locationValue = headers.get("Location");

                  URI locationUrl = null;
                  if (locationValue != null) {
                    locationUrl = new URI(locationValue);
                  }

                  //Check for redirect and location header if it is follow redirect if we have request forwarding left
                  if (shouldRedirect(status) && maxRedirects > 0 && locationUrl != null) {
                    Action<? super RequestSpec> redirectRequestConfig = Action.join(requestConfigurer, s -> {
                      if (status.getCode() == 301 || status.getCode() == 302) {
                        s.method("GET");
                      }
                      s.redirects(maxRedirects - 1);
                    });
                    RequestAction requestAction = new RequestAction(redirectRequestConfig, locationUrl, execution, eventLoopGroup, byteBufAllocator, maxContentLengthBytes);
View Full Code Here

Examples of ru.yandex.qatools.allure.model.Status

     *
     * @param step which will be changed
     */
    @Override
    public void process(Step step) {
        Status status = throwable instanceof AssertionError ? Status.FAILED : Status.BROKEN;
        step.setStatus(status);
    }
View Full Code Here

Examples of sample.domain.Status

    invalid.setChecked(status.isInvalid());
    wontfix.setChecked(status.isWontfix());
  }

  public Status getValue() {
    Status status = new Status();
    status.setAccepted(accepted.isChecked());
    status.setStarted(started.isChecked());
    status.setDone(done.isChecked());
    status.setDuplicate(duplicate.isChecked());
    status.setInvalid(invalid.isChecked());
    status.setWontfix(wontfix.isChecked());
    return status;
  }
View Full Code Here

Examples of twitter4j.Status

  @Test
  public void testConvertStatus() {
    TwitterConverter converter = new TwitterConverter();
   
    Status tweet = EasyMock.createMock(Status.class);
    EasyMock.expect(tweet.getSource()).andReturn("schneider_chris").anyTimes();
    Date now = new Date();
    EasyMock.expect(tweet.getCreatedAt()).andReturn(now).anyTimes();
    EasyMock.expect(tweet.getText()).andReturn("#camel mytopic 2").anyTimes();
    EasyMock.replay(tweet);
    Vote vote = converter.convert(tweet);
    Assert.assertEquals(tweet.getSource(), vote.getFromUser());
    Assert.assertEquals(now, vote.getVoteDateTime());
    Assert.assertEquals(2, vote.getVote());
    Assert.assertEquals("mytopic", vote.getTopic());
    EasyMock.verify(tweet);
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.Status

      return false;
    if (obj == this)
      return true;
    if (!(obj instanceof Status))
      return false;
    Status them = (Status) obj;
    // If not saved, then compare resolved actual objects. Otherwise
    // just compare IDs.
    if (getStatusId().equals(StatusImpl.UNSAVED_ID)
        || them.getStatusId().equals(StatusImpl.UNSAVED_ID)) {
      return getRunName().equals(them.getRunName());
    }
    else {
      return getStatusId().equals(them.getStatusId()) &&
             getHealth().equals(them.getHealth()) &&
             getStartDate().equals(them.getStartDate()) &&
             getCompletionDate().equals(them.getCompletionDate());
    }
  }
View Full Code Here

Examples of voldemort.utils.ConsistencyFix.Status

                logger.trace(nodeValue.getNodeId() + " --- " + nodeValue.getKey().toString());
            }
        }

        // Do the repairs
        Status status = doRepairPut(toReadRepair);

        // return status of last operation (success or otherwise)
        return status;
    }
View Full Code Here

Examples of weibo4j.Status

            /*
       * 此处需要填写AccessToken的key和Secret,可以从OAuthUpdate的执行结果中拷贝过来
             */
            weibo.setToken("e42f35bd66fce37d7c6dfeb6110d8957", "a1943b8ea10eb708e67825d25675d246");
           
            Status status = weibo.updateStatus("你好吗?");
           
            System.out.println("Successfully updated the status to [" + status.getText() + "].");
            System.exit(0);
        } catch (WeiboException te) {
            System.out.println("Failed to get timeline: " + te.getMessage());
            System.exit( -1);
        } catch (Exception ioe) {
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.