|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atomikos.icatch.msg.AbstractTransport
com.atomikos.icatch.msg.HttpTransport
public class HttpTransport
A transport for HTTP.
Field Summary | |
---|---|
static String |
CONTEXT_ROOT
The context root of this transport. |
Fields inherited from interface com.atomikos.icatch.msg.Transport |
---|
FTP, HTTP, JMS, SMTP, UNKNOWN_PROTOCOL |
Constructor Summary | |
---|---|
HttpTransport(String name,
String participantLocalAddress,
String coordinatorLocalAddress,
int commitProtocol,
int transportProtocol,
int format,
long defaultTimeout)
Creates a new instance. |
Method Summary | |
---|---|
protected String |
createURL(String localPath)
|
static int |
getPort()
|
static String |
getServerIpAddress()
|
static void |
initialize(String serverIp,
int portNumber,
boolean useSecureHttp)
Initializes the HttpTransport class; should be called before the first instance is constructed. |
void |
replyReceived(TransactionMessage msg)
Notification that a reply has come in. |
void |
requestReceived(TransactionMessage msg)
Notification that a request has come in. |
static boolean |
useSecureHttp()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXT_ROOT
Constructor Detail |
---|
public HttpTransport(String name, String participantLocalAddress, String coordinatorLocalAddress, int commitProtocol, int transportProtocol, int format, long defaultTimeout)
name
- participantLocalAddress
- coordinatorLocalAddress
- commitProtocol
- transportProtocol
- format
- defaultTimeout
- Method Detail |
---|
public static void initialize(String serverIp, int portNumber, boolean useSecureHttp)
serverIp
- portNumber
- useSecureHttp
- public static int getPort()
public static String getServerIpAddress()
public static boolean useSecureHttp()
protected String createURL(String localPath)
public void requestReceived(TransactionMessage msg)
AbstractTransport
requestReceived
in class AbstractTransport
msg
- The incoming request message.public void replyReceived(TransactionMessage msg)
AbstractTransport
replyReceived
in class AbstractTransport
msg
- The incoming reply message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |