public class HtmlMessenger extends Object
Constructor and Description |
---|
HtmlMessenger(String url,
Map<String,String> postList)
Instantiate messenger
|
Modifier and Type | Method and Description |
---|---|
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(String url)
Creates a client to communicate.
|
public HtmlMessenger(String url, Map<String,String> postList) throws HtmlMessengerException
url
- the HTTP POST URLpostList
- variables list in postHtmlMessengerException
- if the POST failedpublic org.apache.http.impl.client.CloseableHttpClient getCommunicationLink(String url) throws HtmlMessengerException
url
- get a HTTP client connectionHtmlMessengerException
- if connection to the URL failedpublic String executePost() throws HtmlMessengerException
HtmlMessengerException
- if the HTTP POST failed
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.