public class HtmlMessenger
extends java.lang.Object
| Constructor and Description | 
|---|
| HtmlMessenger(java.lang.String url,
             java.util.Map<java.lang.String,java.lang.String> postList)Instantiate messenger | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.String | executePost()Execute a post action and retrieve server reply
 This method executes the post created when this class is instantiated | 
| org.apache.http.impl.client.CloseableHttpClient | getCommunicationLink(java.lang.String url)Creates a client to communicate. | 
public HtmlMessenger(java.lang.String url,
                     java.util.Map<java.lang.String,java.lang.String> postList)
              throws HtmlMessengerException
url - the HTTP POST URLpostList - variables list in postHtmlMessengerException - if the POST failedpublic org.apache.http.impl.client.CloseableHttpClient getCommunicationLink(java.lang.String url)
                                                                     throws HtmlMessengerException
url - get a HTTP client connectionHtmlMessengerException - if connection to the URL failedpublic java.lang.String executePost()
                             throws HtmlMessengerException
HtmlMessengerException - if the HTTP POST failed