Package java.net

Examples of java.net.ConnectException


   * @exception ConnectException  If the connection fails.
   * @exception AdminException  Never thrown.
   */
  public static Server[] getServers(String domain) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return wrapper.getServers(domain);
  }
View Full Code Here


   * @exception ConnectException  If the admin connection is closed or broken.
   * @exception AdminException  If the request fails.
   */
  public static Destination[] getDestinations(int serverId) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");
   
    return wrapper.getDestinations(serverId);
  }
View Full Code Here

  public static Destination createQueue(int serverId,
                                 String name,
                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");
   
    return wrapper.createQueue(serverId, name, className, prop);
  }
View Full Code Here

  public static Destination createTopic(int serverId,
                                 String name,
                                 String className,
                                 Properties prop) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");
   
    return wrapper.createTopic(serverId, name, className, prop);
  }
View Full Code Here

   *
   * @deprecated No longer supported next to Joram 5.2
   */
  public static List getUsersList(int serverId) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    User[] users = wrapper.getUsers(serverId);

    Vector list = new Vector();
    for (int i=0; i < users.length; i++) {
View Full Code Here

   * @exception ConnectException  If the connection fails.
   * @exception AdminException  If the request fails.
   */
  public static User[] getUsers(int serverId) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return wrapper.getUsers(serverId);
  }
View Full Code Here

    return wrapper.getUsers(serverId);
  }

  public static Server getLocalServer() throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return wrapper.getLocalServer();
  }
View Full Code Here

   */
  public static User createUser(String name, String password,
                         int serverId,
                         String identityClassName) throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return wrapper.createUser(name, password, serverId, identityClassName);
  }
View Full Code Here

   * @exception ConnectException  If the admin connection is not established.
   * @throws AdminException
   */
  public static int getLocalServerId() throws ConnectException, AdminException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return wrapper.getLocalServerId();
  }
View Full Code Here

   *
   * @exception ConnectException  If the admin connection is not established.
   */
  public static String getLocalHost() throws ConnectException {
    if (wrapper == null)
      throw new ConnectException("Administrator not connected.");

    return localHost;
  }
View Full Code Here

TOP

Related Classes of java.net.ConnectException

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.