| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implements POST for HTTP protocol
Field Summary | |
final int | ACTIVE |
final int | BOUNDARYLENGTH |
(package private) boolean | debug |
(package private) String | envelope |
(package private) String | envMime |
final int | FAILED |
(package private) String | host |
final int | INIT |
(package private) String | message |
(package private) String | messageID |
(package private) Message | messageStore |
(package private) String | msgMime |
(package private) ICallback | parent |
(package private) int | responseCode |
(package private) String | responseMessage |
static String | SENDFAILURE |
static String | SENDSUCCESS |
final int | SUCCESS |
final int | UNKNOWN |
Constructor Summary | |
SenderThread() Constructors ****************************************** | |
SenderThread(Message msg, String host, ICallback parent) | |
SenderThread(Message msg, String host, ICallback parent, String id) | |
SenderThread(String host, String envelope, String message) Constructor | |
SenderThread(String host, String envelope, String message, String id, ICallback parent) |
Method Summary | |
String | boundaryString(int n) Returns MIME random boundary string. |
int | getResponseCode() Returns the response code of the post operation. |
String | getResponseMessage() |
void | go() |
String | post() Executes the post. |
synchronized String | post(Message msg, String site) |
synchronized String | post(String envelope, String message, String site) |
synchronized String | post(String envelope, String message, URL site) Executes the post. |
int | rand(int l, int h) Return a random number between the given integers. |
String | randomString(int n) Returns a randomize string of n characters 'a' - 'z'. |
void | run() The process is started only and only if the initialization succeeded. |
void | setEnvelope(String envelope) Sets the envelope. |
void | setEnvMimeType(String t) Sets the envelope mime type |
void | setHost(String host) Sets the host. |
void | setID(String id) |
void | setMessage(String message) Sets the message. |
void | setMsgMimeType(String t) Sets the message mime type. |
void | shutdown() Shutdown this thread. |
Field Detail |
public final int ACTIVE
public final int BOUNDARYLENGTH
boolean debug
String envelope
String envMime
public final int FAILED
String host
public final int INIT
String message
String messageID
Message messageStore
String msgMime
ICallback parent
int responseCode
String responseMessage
public static String SENDFAILURE
public static String SENDSUCCESS
public final int SUCCESS
public final int UNKNOWN
Constructor Detail |
public SenderThread()
public SenderThread(Message msg, String host, ICallback parent)
public SenderThread(Message msg, String host, ICallback parent, String id)
public SenderThread(String host, String envelope, String message)
public SenderThread(String host, String envelope, String message, String id, ICallback parent)
Method Detail |
public String boundaryString(int n)
public int getResponseCode()
public String getResponseMessage()
public void go()
public String post()
public synchronized String post(Message msg, String site)
public synchronized String post(String envelope, String message, String site)
public synchronized String post(String envelope, String message, URL site)
public int rand(int l, int h)
public String randomString(int n)
public void run()
public void setEnvelope(String envelope)
public void setEnvMimeType(String t)
public void setHost(String host)
public void setID(String id)
public void setMessage(String message)
public void setMsgMimeType(String t)
public void shutdown()
Association Links |
to Class java.lang.String
to Class fipaos.mts.http.internal.ICallback
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
to Class java.lang.String
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |