|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthhms.HTTPConnection
A HTTPConnection is a active HTTP connection to HHMS Gateway. A client uses a HTTPConnection to create one or more TopicConnections for producing and consuming messages. Must implements ErroHandler to receive error messages.
Sample code:
public void init() {
HTTPConnection = new hhms.HTTPConnection("http://156.xx.xxx.xx:5xxx", user, this, interval);
TopicSession ts = conn.createTopicSession();
ts.setPubSub(topic);
ts.setMessageListener(this);
}
Title: HTTPConnection
Copyright: Copyright (c) 2004
Company: CommunityGrids Labs at Indiana University
| Constructor Summary | |
HTTPConnection(java.lang.String uri,
java.lang.String userID,
ErrorHandler eh)
Class Constructor |
|
HTTPConnection(java.lang.String uri,
java.lang.String userID,
ErrorHandler eh,
int interval)
Class Constructor specifying interval to polling |
|
| Method Summary | |
void |
close()
close HTTPConnection because HTTP is stateless connection, this close just send logout message to HHMS Gateway. |
hhms.soap.SOAPSession |
createSOAPSession()
create and return a new SOAPSession |
TopicSession |
createTopicSession()
create and return a new TopicSession |
void |
pollDisable()
Enable polling from a disabled state |
void |
pollEnable()
Disable polling from a Enabled state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTTPConnection(java.lang.String uri,
java.lang.String userID,
ErrorHandler eh)
uri - a uri of HHMS Gateway (e.g. http://somewhere.ucs.indiana.edu:1234)userID - a user name as a identificationeh - an error handler object
public HTTPConnection(java.lang.String uri,
java.lang.String userID,
ErrorHandler eh,
int interval)
uri - a uri of HHMS Gateway (e.g. http://somewhere.ucs.indiana.edu:1234)userID - a user name as a identificationeh - an error handler objectinterval - a interval between HTTP polling| Method Detail |
public TopicSession createTopicSession()
TopicSessionpublic hhms.soap.SOAPSession createSOAPSession()
SOAPSessionpublic void pollEnable()
public void pollDisable()
public void close()
because HTTP is stateless connection, this close just send logout message to HHMS Gateway.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||