Examples of After


Examples of org.jboss.resteasy.annotations.security.doseta.After

      if (signed.timestamped())
      {
         header.setTimestamp();
      }

      After after = signed.expires();
      if (after.seconds() > 0
              || after.minutes() > 0
              || after.hours() > 0
              || after.days() > 0
              || after.months() > 0
              || after.years() > 0)
      {
         header.setExpiration(after.seconds(), after.minutes(), after.hours(), after.days(), after.months(), after.years());
      }
      return header;
   }
View Full Code Here

Examples of org.jboss.resteasy.annotations.security.doseta.After

         verification.setIdentifierName(v.identifierName());
      if (v.identifierValue() != null && !v.identifierValue().trim().equals(""))
         verification.setIdentifierValue(v.identifierValue());

      verification.setIgnoreExpiration(v.ignoreExpiration());
      After staleAfter = v.stale();
      if (staleAfter.seconds() > 0
              || staleAfter.minutes() > 0
              || staleAfter.hours() > 0
              || staleAfter.days() > 0
              || staleAfter.months() > 0
              || staleAfter.years() > 0)
      {
         verification.setStaleCheck(true);
         verification.setStaleSeconds(staleAfter.seconds());
         verification.setStaleMinutes(staleAfter.minutes());
         verification.setStaleHours(staleAfter.hours());
         verification.setStaleDays(staleAfter.days());
         verification.setStaleMonths(staleAfter.months());
         verification.setStaleYears(staleAfter.years());
      }
      verification.setBodyHashRequired(v.bodyHashRequired());
      return verification;
   }
View Full Code Here

Examples of org.mockito.verification.After

     * @param millis - time span in milliseconds
     *
     * @return verification mode
     */
    public static VerificationAfterDelay after(int millis) {
        return new After(millis, VerificationModeFactory.times(1));
    }
View Full Code Here

Examples of org.opengis.filter.temporal.After

        "      </gml:TimeInstant> " +
        "   </fes:After> " +
        "</fes:Filter>";
        buildDocument(xml);
       
        After after = (After) parse();
        assertNotNull(after);
       
        assertTrue(after.getExpression1() instanceof PropertyName);
        assertEquals("timeInstanceAttribute", ((PropertyName)after.getExpression1()).getPropertyName());

        assertTrue(after.getExpression2() instanceof Literal);
        assertTrue(after.getExpression2().evaluate(null) instanceof Instant);
    }
View Full Code Here

Examples of org.opengis.filter.temporal.After

  public After buildAfterDate() throws CQLException {
       
    Expression right = this.resultStack.popExpression();
        Expression left = this.resultStack.popExpression();
       
        After filter =  this.filterFactory.after(left, right);
       
        return filter;
  }
View Full Code Here

Examples of org.opengis.filter.temporal.After

        Literal date = period.getEnding();

        Expression property = this.resultStack.popExpression();

        After filter = filterFactory.after(property, date);

        return filter;
   
View Full Code Here

Examples of org.opengis.filter.temporal.After

        Period period = this.resultStack.popPeriod();
       
        PropertyName property = this.resultStack.popPropertyName();

        // makes the after filter
        After right = this.filterFactory.after(property, filterFactory.literal(period.getEnding()));
       
        // makes the during filter
        During left = this.filterFactory.during(property, this.filterFactory.literal(period));

      Or filter = this.filterFactory.or(left, right);
View Full Code Here

Examples of org.opengis.filter.temporal.After

      throws ParseException {
    During during = FACTORY.during(property, FACTORY.literal(period));

    final Date lastDate = period.getEnding().getPosition().getDate();
   
    After after = FACTORY.after(property, FACTORY.literal(lastDate));
    Or filter = FACTORY.or(during, after);
    return filter;
  }
View Full Code Here

Examples of org.opengis.filter.temporal.After

     * @return a filter
     * @throws CQLException
     */
    private After buildAfterPredicate()
            throws CQLException {
        After filter = null;

        // determines if the node is period or date
        Result result = this.builder.peekResult();

        switch (result.getNodeType()) {
View Full Code Here

Examples of org.opengis.filter.temporal.After

  }

    private static void afterPredicate() throws Exception{
     
      // cql_afterPredicate start
        After filter = (After) CQL.toFilter("lastEarthQuake AFTER 2006-11-30T01:30:00Z");
      // cql_afterPredicate end
        Utility.prittyPrintFilter(filter);
       
        final SimpleFeature city = DataExamples.getInstanceOfCity();
        Expression leftExpr = filter.getExpression1();
        Expression rightExpr = filter.getExpression2();
        System.out.println("left expression value: " + leftExpr.evaluate(city));
        System.out.println("right expression value: " + rightExpr.evaluate(city));
       
        Boolean result = filter.evaluate(city);
        System.out.println("Result of filter evaluation: " + result);       
  }
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.