|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.sagd.PMQServer.PMQInterfaceDispatcher
com.softwareag.sagd.PMQServer.ToHTTPStreamDispatcher
public class ToHTTPStreamDispatcher
This dispatcher class implements the stream interface. Incoming streams are sending with HTTP post or put to a web application.
Constructor Summary | |
---|---|
ToHTTPStreamDispatcher(java.lang.String url,
boolean doPost)
Creates object and sends all messages to given URL. |
Method Summary | |
---|---|
boolean |
doDispatch(java.io.InputStream receivedMessage,
java.io.OutputStream replyMessage)
Receives messages as stream and replies response. |
void |
doIgnoreReplyMessage(boolean flag)
|
void |
doInit()
Initialize object. |
void |
doRelease()
Release all resources. |
void |
setAuthentication(java.lang.String userID,
java.lang.String password)
Connect with basic authentication |
Methods inherited from class com.softwareag.sagd.PMQServer.PMQInterfaceDispatcher |
---|
doDispatch, doInit, doLog, doLog, getLifetime, getPersistentStatusFlagChanged, getStatusPersistence, isSingleMessageDispatcher, isStreamSendResponseDispatcher, setLifetime, setSingleMessageDispatcher, setStatusPersistence, setStreamSendResponseDispatcher |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToHTTPStreamDispatcher(java.lang.String url, boolean doPost)
url
- of web applicationdoPost
- true
uses POST and false
uses PUT methodMethod Detail |
---|
public void setAuthentication(java.lang.String userID, java.lang.String password)
userID
- password
- public void doIgnoreReplyMessage(boolean flag)
public void doInit() throws java.lang.Throwable
doInit
in class PMQInterfaceDispatcher
java.lang.Throwable
public boolean doDispatch(java.io.InputStream receivedMessage, java.io.OutputStream replyMessage)
doDispatch
in class PMQInterfaceDispatcher
receivedMessage
- Incoming messagereplyMessage
- Outgoing message
true
to commit the message. false
does a backout and stops the server.public void doRelease()
doRelease
in class PMQInterfaceDispatcher
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |