public class HTTPMessenger
extends java.lang.Object
| Constructor and Description |
|---|
HTTPMessenger(java.util.Map props)
Creates new HTTPMessenger
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
download(XQueue xq)
It gets a JMS message from xq that contains a URL to be downloaded and
downloads the web page via http.
|
void |
fulfill(XQueue xq)
It gets a JMS message from xq that contains a static URL for the initial
asynchronous request and a dynamic URL template for a subsequent checking
on the status of the fulfillment via http.
|
java.lang.String |
getOperation() |
java.lang.String |
getURI() |
boolean |
isConnected() |
java.lang.String |
reconnect() |
void |
retrieve(XQueue xq)
retrieve a page from web server and put it to an XQ
|
void |
store(XQueue xq)
It gets a JMS Message from the XQueue and stores its content into a
URL via http POST continuously.
|
public HTTPMessenger(java.util.Map props)
public void retrieve(XQueue xq) throws java.io.IOException, javax.jms.JMSException
java.io.IOExceptionjavax.jms.JMSExceptionpublic void download(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void fulfill(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void store(XQueue xq) throws java.io.IOException, TimeoutException, javax.jms.JMSException
java.io.IOExceptionTimeoutExceptionjavax.jms.JMSExceptionpublic void close()
public java.lang.String reconnect()
public java.lang.String getOperation()
public java.lang.String getURI()
public boolean isConnected()