Package org.openmim.mn

Examples of org.openmim.mn.MessagingNetworkException


  }

  public boolean isAuthorizationRequired(String srcLoginId, String dstLoginId)
      throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here


    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
  public void authorizationRequest(String srcLoginId, String dstLoginId, String reason)
      throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
  public void authorizationResponse(String srcLogin, String dstLogin, boolean grant)
      throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

      {
        if (Defines.DEBUG && CAT.isEnabledFor(org.apache.log4j.Level.WARN)) CAT.warn("icq2k [" + srcLoginId + "] logout: session already logged out, request ignored");
        return;
      }
      session.setLastError(
        new MessagingNetworkException(
          "logout requested by caller",
          MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_LOGOUT_CALLER,
          endUserReason)
      );
    }
View Full Code Here

    String emailSearchPattern,
    String nickSearchPattern,
    String firstNameSearchPattern,
    String lastNameSearchPattern) throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

      {
        Session ses = (Session) e.nextElement();
        try
        {
          ses.setLastError(
            new MessagingNetworkException(
              "mim server restarts",
              MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
              MessagingNetworkException.ENDUSER_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN));
          ses.logout(context,
            MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
View Full Code Here

      {
        //if (Defines.DEBUG && CAT.isEnabledFor(org.apache.log4j.Level.WARN))
        //  CAT.warn("aopq is full; waiting to execute op: "+op);
        //while (!isStopped() && q.size() >= MAX_QUEUE_SIZE) wait();
        boolean timeoutLogsOff = op.timeoutLogsOff();
        MessagingNetworkException mex = new MessagingNetworkException(
          "session aopq overflow, aop rejected: "+op,
          (timeoutLogsOff ?
            MessagingNetworkException.CATEGORY_NOT_CATEGORIZED :
            MessagingNetworkException.CATEGORY_STILL_CONNECTED),
          (timeoutLogsOff ?
            MessagingNetworkException.ENDUSER_OPERATION_REJECTED_USER_TOO_ACTIVE_LOGGED_OFF :
            MessagingNetworkException.ENDUSER_OPERATION_REJECTED_USER_TOO_ACTIVE_NOT_LOGGED_OFF)
        );
        op.fail(mex);
        op.rethrowExceptionIfFailed();
        return op.getId();
      }


      //startTimeoutTask
      {
        MessagingTask timeoutTask = new MessagingTask("timeout", op.getSession())
        {
          public void run() throws Exception
          {
            boolean timeoutLogsOff = op.timeoutLogsOff();
            MessagingNetworkException mex = new MessagingNetworkException(
              "operation has timed out: "+op,
              (timeoutLogsOff ?
                MessagingNetworkException.CATEGORY_NOT_CATEGORIZED :
                MessagingNetworkException.CATEGORY_STILL_CONNECTED),
              (timeoutLogsOff ?
View Full Code Here

        {
          Session ses = (Session) e.nextElement();
          try
          {
            ses.setLastError(
              new MessagingNetworkException(
                "mim server restarts",
                MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
                MessagingNetworkException.ENDUSER_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN));
            ses.logout(ctx,
              MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
View Full Code Here

      session.getUserDetailsComplete();
    }

    final void errorFetchingReceived()
    {
      fail(new MessagingNetworkException(
            "icq server refuses to return userinfo for "+dstLoginId+".",
            MessagingNetworkException.CATEGORY_STILL_CONNECTED,
            MessagingNetworkException.ENDUSER_MESSAGING_SERVER_REFUSES_TO_RETURN_USERINFO));
    }
View Full Code Here

            MessagingNetworkException.ENDUSER_MESSAGING_SERVER_REFUSES_TO_RETURN_USERINFO));
    }

    final void userDetailsUnknownFormatReceived()
    {
      fail(new MessagingNetworkException(
            "can't get userinfo for "+dstLoginId+": cannot parse packet.",
            MessagingNetworkException.CATEGORY_STILL_CONNECTED,
            MessagingNetworkException.ENDUSER_PROTOCOL_ERROR_NOT_LOGGED_OFF));
    }
View Full Code Here

TOP

Related Classes of org.openmim.mn.MessagingNetworkException

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.