Package org.mitre.sipchat.model.presence

Examples of org.mitre.sipchat.model.presence.Presentity


    }

    private static void register( String user, char[] password,
          String host, RegisterResult result,
          ClientFactory cf ) {
  Presentity me = new Presentity( user );

  SipClient client = SipClient.getSipClient();
  // set the IM capabilities in the SIP library
  client.setContactCapabilities( SipUri.METHOD_SUBSCRIBE |
               SipUri.METHOD_MESSAGE );
View Full Code Here


    private void reallyShowMessage(final Message m) {
  synchronized(messages) {
      String[] body = m.getBody();
      //      IMA from = m.getFrom();
      Presentity from = m.getFrom();
      SimpleAttributeSet style = (from != null && !from.equals(me)) ? you_headerStyle : me_headerStyle;
      try {
    insertHeader(doc, m, style);
      } catch (BadLocationException ble1) { /* can't happen */ }
      for (int i = 0; i < body.length; i++) {
    if (body[i] == null)
View Full Code Here

  throws BadLocationException
    {
  String s = "";
  String status = msg.getSignatureStatus();
  //  IMA from = msg.getFrom();
  Presentity from = msg.getFrom();
  if (from != null) {
      /** SRJ check the next line */
      String s1 = longUser ? from.nameAddr() : from.getFullname();
      if ((getShowSignatureStatus() && status != null) || getShowDate()) {
    s1 += " ";
      }
      doc.insertString(doc.getLength(), s1, style);
  }
View Full Code Here

    protected int sizeOfMessageHeader(Message msg) {
  StringBuffer sb = new StringBuffer();
  String s = "";
  String status = msg.getSignatureStatus();
  //  IMA from = msg.getFrom();
  Presentity from = msg.getFrom();
  if (from != null) {
      /** SRJ check next line */
      String s1 = longUser ? from.toString() : from.uri();
      if ((getShowSignatureStatus() && status != null) || getShowDate()) {
    s1 += " ";
      }
      sb.append(s1);
  }
View Full Code Here

TOP

Related Classes of org.mitre.sipchat.model.presence.Presentity

Copyright © 2018 www.massapicom. 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.