Examples of Timestamp


Examples of org.infinispan.schematic.document.Timestamp

        assertSame(expected, actual);
    }

    @Test
    public void shouldCorrectlyWriteTimestamp() {
        Timestamp now = new Timestamp(new Date());
        String expected = "{ \"$ts\" : " + now.getTime() + " , \"$inc\" : " + now.getInc() + " }";
        String actual = writer.write(now);
        assertSame(expected, actual);
    }
View Full Code Here

Examples of org.jboss.ws.extensions.security.element.Timestamp

   }

   private void decode() throws WSSecurityException
   {
      // Validate a timestamp if it is present
      Timestamp timestamp = header.getTimestamp();

      if (timestamp != null)
      {
         TimestampVerificationOperation operation = (now == null) ? new TimestampVerificationOperation(timestampVerification) : new TimestampVerificationOperation(now);
         operation.process(message, timestamp);
View Full Code Here

Examples of org.jboss.ws.metadata.wsse.Timestamp

      // Nothing to process
      if (opConfig == null)
         return;

      ArrayList<OperationDescription<EncodingOperation>> operations = new ArrayList<OperationDescription<EncodingOperation>>();
      Timestamp timestamp = opConfig.getTimestamp();
      if (timestamp != null)
      {
         operations.add(new OperationDescription<EncodingOperation>(TimestampOperation.class, null, null, timestamp.getTtl(), null));
      }

      NonceGenerator nonceGenerator = null;
      Username username = opConfig.getUsername();
      if (username != null)
View Full Code Here

Examples of org.jwall.web.audit.util.Timestamp

    processors.add(new IronBeeHttpHeaderParser("http-response-headers",
        "HTTP_RESPONSE_HEADERS", "RESPONSE_LINE"));

    processors.add(new IronBeeJSONProcessor());
    processors.add(new Timestamp("DATE", "yyyy-mm-dd'T'hh:mm:ss.SZ",
        "REQUEST_TIMESTAMP"));
    processors.add(new Timestamp("RECEIVED", "yyyy-mm-dd'T'hh:mm:ss.SZ",
        "LOG_TIMESTAMP"));

    final ProcessContext ctx = new ProcessContextImpl();

    for (Processor p : processors) {
View Full Code Here

Examples of org.kie.api.definition.type.Timestamp

            attrDef.setReadWriteAccessor( accessor );
        }
    }

    protected void wireTimestampAccessor( AbstractClassTypeDeclarationDescr typeDescr, TypeDeclaration type, PackageRegistry pkgRegistry ) {
        Timestamp timestamp = typeDescr.getTypedAnnotation(Timestamp.class);
        if ( timestamp != null ) {
            String timestampField = null;
            try {
                timestampField = timestamp.value();
            } catch (Exception e) {
                kbuilder.addBuilderResult(new TypeDeclarationError(typeDescr, e.getMessage()));
                return;
            }
            type.setTimestampAttribute( timestampField );
View Full Code Here

Examples of org.opensaml.ws.wssecurity.Timestamp

*/
public class TimestampMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        Timestamp timestamp = (Timestamp) xmlObject;
       
        if (!DatatypeHelper.isEmpty(timestamp.getWSUId())) {
            XMLHelper.marshallAttribute(Timestamp.WSU_ID_ATTR_NAME, timestamp.getWSUId(), domElement, true);
        }
       
        XMLHelper.marshallAttributeMap(timestamp.getUnknownAttributes(), domElement);
    }
View Full Code Here

Examples of org.snmp4j.agent.mo.snmp.TimeStamp

         event.getRow()).setValue(Snmp4jDemoMib.idxSnmp4jDemoEntryCol3,
                                  counter);
      }
      counter.increment();
      // update timestamp
      TimeStamp timestamp = (TimeStamp)
          event.getTable().getColumn(Snmp4jDemoMib.idxSnmp4jDemoEntryCol4);
      timestamp.update((MOMutableTableRow)event.getRow(),
                       Snmp4jDemoMib.idxSnmp4jDemoEntryCol4);
      // fire notification
      Integer32 type =
          new Integer32(Snmp4jDemoMib.Snmp4jDemoTableRowModificationEnum.updated);
      switch (event.getType()) {
View Full Code Here

Examples of org.tmatesoft.svn.core.internal.util.jna.ISVNSecurityLibrary.TimeStamp

            inBufferDescription.pBuffers = inSecBuffer.getPointer();
            inBufferDescription.write();
        }
       
        Pointer contextAttributes = new Memory(NativeLong.SIZE);
        TimeStamp ltime = new TimeStamp();
        ltime.HighPart = new NativeLong(0);
        ltime.LowPart = new NativeLong(0);
        ltime.write();
       
        int securityStatus = library.InitializeSecurityContextW(params.myCrdHandle.getPointer(),
                pContext != null ? pContext.getPointer() : Pointer.NULL,
                        null,
                        new NativeLong(0),
                        new NativeLong(0),
                        new NativeLong(ISVNSecurityLibrary.SECURITY_NATIVE_DREP),
                        lastToken != null ? inBufferDescription.getPointer() : Pointer.NULL,
                                new NativeLong(0),
                                newContext.getPointer(),
                                outBufferDescription.getPointer(),
                                contextAttributes,
                                ltime.getPointer());

        if (securityStatus < 0) {
            endSequence(params);
            return null;
        }
View Full Code Here

Examples of org.xmlBlaster.util.Timestamp

                      "   </TestSub-AGENT>" +
                      "</key>";
      senderContent = "Yeahh, i'm the new content";
      try {
         MsgUnit msgUnit = new MsgUnit(xmlKey, senderContent.getBytes(), "<qos></qos>");
         sentTimestamp = new Timestamp();
         PublishReturnQos tmp = senderConnection.publish(msgUnit);
         assertEquals("Wrong publishOid", publishOid, tmp.getKeyOid());
         log.info("Success: Publishing done, returned oid=" + publishOid);
      } catch(XmlBlasterException e) {
         log.warning("XmlBlasterException: " + e.getMessage());
View Full Code Here

Examples of pt.opensoft.util.Timestamp

                if (value.length() == 10) value += " 00:00:00";
                _value = new DateTime(value, _field.getDateFormat(), true);
                break;

            case Types.TIMESTAMP:
                _value = new Timestamp(value, _field.getDateFormat(), true);
                break;

            case Types.NULL:
            case Types.OTHER:
            case Types.CHAR:
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.