|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.zasysdev.zamae.ZA_Msg_Connection
public final class ZA_Msg_Connection
This class provides all http connection capability handling
HttpConnection| Field Summary | |
|---|---|
byte[] |
rcvdData
holds the last received data |
byte[] |
rcvdUncompressedData
holds the last received data, uncompressed |
| Constructor Summary | |
|---|---|
ZA_Msg_Connection()
creator method |
|
ZA_Msg_Connection(java.lang.String a_strAppVersionString,
java.lang.String a_method)
creator method |
|
ZA_Msg_Connection(java.lang.String a_strAppVersionString,
java.lang.String a_strDeviceContextString,
java.lang.String a_method,
java.lang.String a_propertyKey,
java.lang.String a_propertyValue,
boolean a_bUseEncryption)
creator method |
|
| Method Summary | |
|---|---|
int |
ZA_Msg_Connect(java.lang.String a_url,
java.lang.String a_message,
java.lang.String a_method)
connects to a URL and sends the message as body |
void |
ZA_Msg_Connection_Init(za_UI_api a_proshObject,
java.lang.String a_strAppVersionString,
java.lang.String a_strDeviceContextString,
java.lang.String a_strCookieString,
java.lang.String a_method,
boolean a_bUseEncryption,
java.lang.String a_strEncryptionKey)
Initializator. |
void |
ZA_Msg_EmptyLastReceivedContent()
empties the last received data object |
int |
ZA_Msg_GetAccumReceivedContentLength()
Getter method: returns the accumulated content length |
int |
ZA_Msg_GetAccumSentContentLength()
Getter method: returns the accumulated content length for sent data |
int |
ZA_Msg_GetLastContentLength()
Getter method: returns the last content length |
java.lang.String |
ZA_Msg_GetLastContentType()
Getter method: returns the last content type string |
java.lang.String |
ZA_Msg_GetLastException()
Getter method: returns the last exception message |
byte[] |
ZA_Msg_GetLastReceivedContentByte()
Getter method: returns the received content from the server in a byte[] object |
java.lang.String |
ZA_Msg_GetLastReceivedContentString()
Getter method: returns the received content from the server in a string object |
int |
ZA_Msg_GetLastResponseCode()
Getter method: returns the last HTTP response code |
java.lang.String |
ZA_Msg_GetLastResponseMessage()
Getter method: returns the last response message |
int |
ZA_Msg_GetNoiseLevel()
gets the actual noise level. |
boolean |
ZA_Msg_IsConnected()
tests if a connection is taking place |
int |
ZA_Msg_PingConnection(java.lang.String a_url)
tests the connection to a given URL |
void |
ZA_Msg_ResetNoiseLevel()
resets the actual noise level to zero. |
void |
ZA_Msg_SetPropertyKeyValuePair(java.lang.String a_propertyKey,
java.lang.String a_propertyValue)
Initializator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public byte[] rcvdData
public byte[] rcvdUncompressedData
| Constructor Detail |
|---|
public ZA_Msg_Connection(java.lang.String a_strAppVersionString,
java.lang.String a_strDeviceContextString,
java.lang.String a_method,
java.lang.String a_propertyKey,
java.lang.String a_propertyValue,
boolean a_bUseEncryption)
a_strAppVersionString - holds the Application Version String which is sent over to the server on every connectiona_strDeviceContextString - holds the Context String. Any valuable data describing the execution context (device capabilites, etc.) is sent in this chunk to be observde by the servera_method - HTTP connection method: GET, POST, etc.a_propertyKey - holds ad-hoc http header namea_propertyValue - holds ad-hoc header value for propertyKeypublic ZA_Msg_Connection()
public ZA_Msg_Connection(java.lang.String a_strAppVersionString,
java.lang.String a_method)
a_strAppVersionString - holds the Application Version String which is sent over to the server on every connectiona_method - HTTP connection method: GET, POST, etc.| Method Detail |
|---|
public void ZA_Msg_Connection_Init(za_UI_api a_proshObject,
java.lang.String a_strAppVersionString,
java.lang.String a_strDeviceContextString,
java.lang.String a_strCookieString,
java.lang.String a_method,
boolean a_bUseEncryption,
java.lang.String a_strEncryptionKey)
a_strAppVersionString - holds the Application Version String which is sent over to the server on every connectiona_strDeviceContextString - holds the Context String. Any valuable data describing the execution context (device capabilites, etc.) is sent in this chunk to be observde by the servera_strCookieString - holds the cookie string if any.a_method - HTTP connection method: GET, POST, etc.
public void ZA_Msg_SetPropertyKeyValuePair(java.lang.String a_propertyKey,
java.lang.String a_propertyValue)
a_propertyKey - holds ad-hoc http header namea_propertyValue - holds ad-hoc header value for propertyKeypublic int ZA_Msg_GetNoiseLevel()
public void ZA_Msg_ResetNoiseLevel()
public int ZA_Msg_PingConnection(java.lang.String a_url)
throws java.io.IOException
a_url - the url
java.io.IOException
public int ZA_Msg_Connect(java.lang.String a_url,
java.lang.String a_message,
java.lang.String a_method)
throws java.io.IOException
a_url - url to connect toa_message - message to send to servera_method - the HTTP connection method: GET, POST, etc.
java.io.IOExceptionpublic boolean ZA_Msg_IsConnected()
public int ZA_Msg_GetLastResponseCode()
public java.lang.String ZA_Msg_GetLastException()
public java.lang.String ZA_Msg_GetLastResponseMessage()
public java.lang.String ZA_Msg_GetLastContentType()
public int ZA_Msg_GetLastContentLength()
public int ZA_Msg_GetAccumReceivedContentLength()
public int ZA_Msg_GetAccumSentContentLength()
public java.lang.String ZA_Msg_GetLastReceivedContentString()
public byte[] ZA_Msg_GetLastReceivedContentByte()
public void ZA_Msg_EmptyLastReceivedContent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||