org.exolab.jms.server.http
Class HttpJmsServer

java.lang.Object
  |
  +--org.exolab.jms.server.http.HttpJmsServer
All Implemented Interfaces:
JmsServerIfc
Direct Known Subclasses:
HttpsJmsServer

public class HttpJmsServer
extends java.lang.Object
implements JmsServerIfc

This class enables clients to connect to the JMS server via a HTTP server. It must be used in conjunction with the TCP connector.

Version:
$Revision: 1.7 $ $Date: 2003/09/25 12:37:56 $
Author:
Jim Mourikis

Constructor Summary
HttpJmsServer()
          Construct a new HttpJmsServer
 
Method Summary
 void bindConnectionFactories(javax.naming.Context context)
          Bind any factory object specified in the configuration file to the specified JNDI context.
protected  org.exolab.jms.config.HttpConfigurationType getHttpConfiguration()
          Returns the HTTP configuration
protected  java.lang.String getHttpServerProperty()
          Returns the HTTP server URL property name, used in the construction of connection factories
protected  java.lang.String getHttpServerURL()
          Returns the HTTP server URL, used in the construction of connection factories
protected  org.exolab.jms.config.types.SchemeType getScheme()
          Returns the connector scheme for this server.
 void init()
          Initialise the server
protected  java.lang.String normalizeHost(java.lang.String host)
          This method will normalize the host name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpJmsServer

public HttpJmsServer()
Construct a new HttpJmsServer
Method Detail

init

public void init()
          throws ServerException
Initialise the server
Specified by:
init in interface JmsServerIfc
Following copied from interface: org.exolab.jms.server.JmsServerIfc
Throws:
ServerException - if the interface cannot be initialised

bindConnectionFactories

public void bindConnectionFactories(javax.naming.Context context)
                             throws javax.naming.NamingException,
                                    ServerException
Description copied from interface: JmsServerIfc
Bind any factory object specified in the configuration file to the specified JNDI context.
Specified by:
bindConnectionFactories in interface JmsServerIfc
Following copied from interface: org.exolab.jms.server.JmsServerIfc
Parameters:
context - context to bind factory objects
Throws:
javax.naming.NamingException - if a naming error occurs
ServerException - if a server error occurs

getScheme

protected org.exolab.jms.config.types.SchemeType getScheme()
Returns the connector scheme for this server.

getHttpConfiguration

protected org.exolab.jms.config.HttpConfigurationType getHttpConfiguration()
Returns the HTTP configuration

getHttpServerProperty

protected java.lang.String getHttpServerProperty()
Returns the HTTP server URL property name, used in the construction of connection factories

getHttpServerURL

protected java.lang.String getHttpServerURL()
Returns the HTTP server URL, used in the construction of connection factories

normalizeHost

protected java.lang.String normalizeHost(java.lang.String host)
This method will normalize the host name. If the host is localhost then it will be converted to the corresponding IP address
Parameters:
host - - the raw host name
Returns:
the normalized IP address


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