org.exolab.jms.administration.http
Class HttpJmsAdminConnection

java.lang.Object
  |
  +--org.exolab.jms.administration.mipc.IpcJmsAdminConnection
        |
        +--org.exolab.jms.administration.http.HttpJmsAdminConnection
All Implemented Interfaces:
AdminConnection, JmsAdminServerIfc
Direct Known Subclasses:
SslHttpJmsAdminConnection

public class HttpJmsAdminConnection
extends IpcJmsAdminConnection

This class is repsonsible for opening an http connection to the server and passing and packing all requests for delivery.

Version:
$Revision: 1.10 $ $Date: 2003/08/18 10:16:12 $
Author:
Jim Mourikis
See Also:
HttpClient

Constructor Summary
HttpJmsAdminConnection(java.lang.String host, int port, java.lang.String path, java.lang.String username, java.lang.String password)
          Create the connection to the server
 
Method Summary
 void close()
          Close the connection.
protected  java.lang.String getPath()
          Returns the admin servlet path
protected  java.lang.String getURL(java.lang.String scheme, java.lang.String host, int port)
          Returns the admin servlet URL
protected  void openConnection()
          Create HTTP client connection.
 
Methods inherited from class org.exolab.jms.administration.mipc.IpcJmsAdminConnection
addDestination, addDurableConsumer, addUser, changePassword, connect, createClientConnection, destinationExists, durableConsumerExists, getAllDestinations, getAllUsers, getConnection, getDurableConsumerMessageCount, getDurableConsumers, getHost, getPort, getQueueMessageCount, isConnected, purgeMessages, removeDestination, removeDurableConsumer, removeUser, setConnection, stopServer, unregisterConsumer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpJmsAdminConnection

public HttpJmsAdminConnection(java.lang.String host,
                              int port,
                              java.lang.String path,
                              java.lang.String username,
                              java.lang.String password)
                       throws javax.jms.JMSException
Create the connection to the server
Parameters:
host - the webserver host
port - the webserver port
path - the admin servlet path. May be null
username - the admin user name
password - the admin password
Throws:
javax.jms.JMSException - if a connection cannot be established
Method Detail

close

public void close()
Description copied from interface: JmsAdminServerIfc
Close the connection.
Overrides:
close in class IpcJmsAdminConnection

openConnection

protected void openConnection()
                       throws javax.jms.JMSException
Create HTTP client connection.
Overrides:
openConnection in class IpcJmsAdminConnection
Parameters:
host - The client to connect to
port - The port used to connect to the client above
Throws:
javax.jms.JMSException - If the connection fails.

getPath

protected java.lang.String getPath()
Returns the admin servlet path
Returns:
the admin servlet path

getURL

protected java.lang.String getURL(java.lang.String scheme,
                                  java.lang.String host,
                                  int port)
Returns the admin servlet URL
Parameters:
scheme - the connection protocol
host - the webserver host
port - the webserver port
Returns:
the admin servlet URL


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.