|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.exolab.jms.client.http.HttpJmsServerStub
This class is repsonsible for opening an http connection to the server and creating HttpJmsConnections.
HttpClient| Constructor Summary | |
HttpJmsServerStub()
Default constructor |
|
HttpJmsServerStub(java.util.Hashtable env)
The constructor has a collection of environment variables which it uses to construct a connection to the remote server |
|
HttpJmsServerStub(java.lang.String url)
Instantiate an instance of this stub with the specified URL |
|
| Method Summary | |
protected java.lang.Object |
checkReply(org.exolab.core.http.HttpClient connection,
java.lang.String method)
A convenience method to check the success of operations which return a true on sucess. |
JmsConnectionStubIfc |
createConnection(java.lang.String clientId,
java.lang.String username,
java.lang.String password)
Create a connection to the JMS Server. |
protected java.util.Vector |
pack(java.lang.String method,
java.lang.String id,
java.lang.String username,
java.lang.String password)
Pack all the data that is required by the server in a vector. |
void |
setExceptionListener(javax.jms.ExceptionListener listener)
Set the exception listener so that the client can be notified of client disconnection events. |
protected void |
setLabel(java.lang.String label)
The the connection label |
protected void |
setURL(java.lang.String URL)
Set the URL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpJmsServerStub()
public HttpJmsServerStub(java.util.Hashtable env)
throws javax.jms.JMSException
env - the connection propertiesjavax.jms.JMSException - if required connection properties aren't specifiedpublic HttpJmsServerStub(java.lang.String url)
url - url of the server hosting the servlet.| Method Detail |
public JmsConnectionStubIfc createConnection(java.lang.String clientId,
java.lang.String username,
java.lang.String password)
throws javax.jms.JMSException
createConnection in interface JmsServerStubIfcclientId - the identity of clientusername - the client usernamepassword - the client passwordjavax.jms.JMSException - if the connection cannot be createdpublic void setExceptionListener(javax.jms.ExceptionListener listener)
JmsServerStubIfcsetExceptionListener in interface JmsServerStubIfcorg.exolab.jms.client.JmsServerStubIfclistener - the exception listenerprotected void setURL(java.lang.String URL)
URL - the webserver URLprotected void setLabel(java.lang.String label)
protected java.lang.Object checkReply(org.exolab.core.http.HttpClient connection,
java.lang.String method)
throws javax.jms.JMSException
connection - the connectionmethod - The requested server function.null if the call
didn't return a resultjavax.jms.JMSException - for any failure.
protected java.util.Vector pack(java.lang.String method,
java.lang.String id,
java.lang.String username,
java.lang.String password)
method - The function to activate on the server.id - The unique client id.username - password -
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||