Examples of MessageInfo


Examples of com.dianping.cat.status.model.entity.MessageInfo

      period.setTotalStartedCount(thread.getTotalStartedCount());
      period.setCatThreadCount(thread.getCatThreadCount());
      period.setPigeonThreadCount(thread.getPigeonThreadCount());
      period.setHttpThreadCount(thread.getHttpThreadCount());

      MessageInfo catInfo = info.getMessage();

      period.setCatMessageProduced(catInfo.getProduced());
      period.setCatMessageOverflow(catInfo.getOverflowed());
      period.setCatMessageSize(catInfo.getBytes());

      MemoryInfo memeryInfo = info.getMemory();
      List<GcInfo> gcs = info.getMemory().getGcs();

      for (GcInfo gc : gcs) {
View Full Code Here

Examples of com.sun.nio.sctp.MessageInfo

   */
  void readMessages() throws IOException {
    if (rxTime==0) {
      rxTime = System.currentTimeMillis();
    }
    MessageInfo info = channel.receive( rxBuffer, null, null );
    if (info==null) {
      // happens a lot, some sort of keep-alive?
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP read-event but no message" );
      }
      return;
    } else if (info.bytes()==-1) {
      getSIPStack().getStackLogger().logWarning( "SCTP peer closed, closing too..." );
      this.close();
      return;
    } else if ( !info.isComplete() ) {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP incomplete message; bytes=" + info.bytes() );
      }
      return;
    } else {
      if ( getSIPStack().getStackLogger().isLoggingEnabled( LogWriter.TRACE_DEBUG ) ) {
        getSIPStack().getStackLogger().logDebug( "SCTP message now complete; bytes=" + info.bytes() );
      }     
    }
   
    // Assume it is 1 full message, not multiple messages
    byte[] msg = new byte[ rxBuffer.position() ];
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.model.MessageInfo

  }


  @Override
  public List<MessageInfo> getMessageList(boolean ignoreproceeded ,long resultRowLimit) {
    return Arrays.asList(new MessageInfo(new Date(),"message","correlationid"));
  }
View Full Code Here

Examples of javax.security.auth.message.MessageInfo

    */
   public Principal authenticate(Request request, HttpServletResponse response,
         LoginConfig config) throws Exception
   {
      log.debug("ExtendedSecurityMgrRealm:authenticate");
      MessageInfo authParam = new GenericMessageInfo(request, request.getResponse());
      GeneralizedAuthenticationManager gam = getAuthenticationManager();
      Subject clientSubject = new Subject();
      Subject serviceSubject = new Subject();
      Map sharedState = getSharedState(request,config);
      AuthStatus status = AuthStatus.FAILURE;
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

  /**
   * Attempts to check the signature on the given message.
   */
  public void checkSignature() {
  final boolean forSignature = true;
    MessageInfo info = getMessageInfo();
    if (info != null) {
      MessageCryptoInfo cInfo = info.getCryptoInfo();
      try {
        if (cInfo != null && cInfo.isSigned()) {
          CryptoStatusDisplay csd = null;

          String fromString = "";
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

  /**
   * Imports the keys on this message.
   */
  public void importKeys() {
    MessageInfo info = getMessageInfo();
    if (info != null) {
      MessageCryptoInfo cInfo = info.getCryptoInfo();
      if (cInfo != null) {
        try {
          java.security.Key[] newKeys = cInfo.extractKeys();
          if (newKeys != null && newKeys.length > 0) {
            // check to see if these match our current keys.
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

        getMessageUI().setBusy(true);
      FolderDisplayUI fw = getFolderDisplayUI();
      if (fw != null)
        fw.setBusy(true);;

      MessageInfo info = getMessageInfo();
      if (info != null) {
        info.runSpamAction();
      }

      if (fw != null)
        fw.setBusy(false);
      if (getMessageUI() != null)
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

  /**
   * Runs server filters on this Message.
   */
  public void runBackendFilters() {
    MessageInfo info = getMessageInfo();
    if (info != null)
      info.runBackendFilters();
  }
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

  /**
   * Attempts to decrypt the given message.
   */
  public void decryptMessage() {
    boolean forSiganture = false;
    MessageInfo info = getMessageInfo();
    if (info != null) {
      try {
        if (info.hasEncryption()) {

          MessageCryptoInfo cInfo = info.getCryptoInfo();

          if (cInfo != null && cInfo.isEncrypted()) {

            java.security.Key key = getDefaultProfile().getEncryptionKey(
                cInfo.getEncryptionType(), forSiganture);
View Full Code Here

Examples of net.suberic.pooka.MessageInfo

    // display changing on the awt event thread.  seem simple enough?

    // assume that we're actually on the FolderThread for now.

    if (getMessageProxy() != null) {
      MessageInfo msgInfo = getMessageProxy().getMessageInfo();

      StringBuffer messageText = new StringBuffer();

      String content = null;

      String contentType = "text/plain";

      boolean displayHtml = false;

      int msgDisplayMode = getMessageProxy().getDisplayMode();

      // figure out html vs. text
      if (Pooka.getProperty("Pooka.displayHtml", "").equalsIgnoreCase("true")) {
        if (msgInfo.isHtml()) {
          if (msgDisplayMode > MessageProxy.TEXT_ONLY)
            displayHtml = true;

        } else if (msgInfo.containsHtml()) {
          if (msgDisplayMode >= MessageProxy.HTML_PREFERRED)
            displayHtml = true;

        } else {
          // if we don't have any html, just display as text.
        }
      }

      //Original was true, changed to false by Liao
      boolean includeHeaders = false;
      boolean showFullheaders = showFullHeaders();

      // Get the header Information
      String header;
      if(showFullheaders){
        header = getFullHeaderInfo(msgInfo);
      } else {
        String list = Pooka.getProperty("MessageWindow.Header.DefaultHeaders", "From:To:CC:Date:Subject");
        header = getHeaderInfo(msgInfo, list);
      }
      headerPane.setText(header);

      headerPane.repaint();

      // set the content
      if (msgDisplayMode == MessageProxy.RFC_822) {
        content = msgInfo.getRawText();
      } else {
        if (displayHtml) {
          contentType = "text/html";

          if (Pooka.getProperty("Pooka.displayTextAttachments", "").equalsIgnoreCase("true")) {
            content = msgInfo.getHtmlAndTextInlines(includeHeaders, showFullheaders);
          } else {
            content = msgInfo.getHtmlPart(includeHeaders, showFullheaders);
          }

        } else {
          if (Pooka.getProperty("Pooka.displayTextAttachments", "").equalsIgnoreCase("true")) {
            // Is there only an HTML part?  Regardless, we've determined that
            // we will still display it as text.
            if (getMessageProxy().getMessageInfo().isHtml())
              content = msgInfo.getHtmlAndTextInlines(includeHeaders, showFullheaders);
            else
              content = msgInfo.getTextAndTextInlines(includeHeaders, showFullheaders);
          }
          else {
            // Is there only an HTML part?  Regardless, we've determined that
            // we will still display it as text.
            if (getMessageProxy().getMessageInfo().isHtml())
              content = msgInfo.getHtmlPart(includeHeaders, showFullheaders);
            else
              content = msgInfo.getTextPart(includeHeaders, showFullheaders);
          }
        }
      }

      if (content != null)
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.