|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.core.io.http.client.JbbXmlOverHttpClientHandler
public class JbbXmlOverHttpClientHandler
This class provides convenience routines to simplify and streamline the request/response handling of XML over HTTP communications. The actual HTTP layer is based on the HttpClient package.
| Constructor Summary | |
|---|---|
JbbXmlOverHttpClientHandler()
constructor |
|
| Method Summary | |
|---|---|
String |
sendRequestGetResponseAsString(String url,
String serializedXmlDocument)
This method sends to the given URL the given serialized XML document. |
String |
sendRequestGetResponseAsString(String url,
String serializedXmlDocument,
int timeout)
This method sends to the given URL the given serialized XML document. |
String |
sendRequestGetResponseAsString(String url,
String serializedXmlDocument,
String xmlEncoding,
int timeout)
This method sends to the given URL the given serialized XML document. |
Document |
sendRequestGetResponseAsXml(String url,
String serializedXmlDocument)
This is the same method than the "String sendRequestStr(String url,String serializedXmlDocument)" method except that the response is returned as an XML document |
Document |
sendRequestGetResponseAsXml(String url,
String serializedXmlDocument,
String xmlEncoding)
This is the same method than the "String sendRequestStr(String url,String serializedXmlDocument)" method except that the response is returned as an XML document |
Document |
sendRequestGetResponseAsXml(String url,
String serializedXmlDocument,
String xmlEncoding,
int timeout)
This is the same method than the "String sendRequestStr(String url,String serializedXmlDocument)" method except that the response is returned as an XML document |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JbbXmlOverHttpClientHandler()
| Method Detail |
|---|
public String sendRequestGetResponseAsString(String url,
String serializedXmlDocument,
int timeout)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
timeout - e.g. 30000 for 30 seconds SO_TIMEOUT
Exception
public String sendRequestGetResponseAsString(String url,
String serializedXmlDocument,
String xmlEncoding,
int timeout)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
xmlEncoding - the encoding to use when POSTing the data to the server (e.g. "UTF-8")timeout - e.g. 30000 for 30 seconds SO_TIMEOUT
Exception
public String sendRequestGetResponseAsString(String url,
String serializedXmlDocument)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
Exception
public Document sendRequestGetResponseAsXml(String url,
String serializedXmlDocument)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
Exception
public Document sendRequestGetResponseAsXml(String url,
String serializedXmlDocument,
String xmlEncoding)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
xmlEncoding - the encoding to use for the xml in the body (e.g. "UTF-8"...)
Exception
public Document sendRequestGetResponseAsXml(String url,
String serializedXmlDocument,
String xmlEncoding,
int timeout)
throws Exception
url - the target URL e.g. "https://www.quadrique.com/test1"serializedXmlDocument - a serialized XML document e.g.
AddUser ...
xmlEncoding - the encoding to use for the xml in the body (e.g. "UTF-8"...)
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||