Package com.illumon.iris.console.events
Class HTTPToZendeskUtils
java.lang.Object
com.illumon.iris.console.events.HTTPToZendeskUtils
public class HTTPToZendeskUtils extends Object
Utilities to send HTTP requests to Zendesk
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTTPToZendeskUtils.ZipFileTooLargeException
Thrown when the zip file is too large and the user cancels the ticket. -
Constructor Summary
Constructors Constructor Description HTTPToZendeskUtils()
-
Method Summary
Modifier and Type Method Description static String
getConfigurationParameters()
Gets the Iris configurationstatic String
getJavaSessionInfo()
Gets system properties.static int
sendPost(List<String> filePaths, String userName, String email, String subject, String userMessage, String[] tags, com.fishlib.io.logger.Logger log, boolean bypassDialog)
Create a JSON post request to Zendesk to create a support ticket.
-
Constructor Details
-
HTTPToZendeskUtils
public HTTPToZendeskUtils()
-
-
Method Details
-
sendPost
public static int sendPost(List<String> filePaths, String userName, String email, String subject, String userMessage, String[] tags, com.fishlib.io.logger.Logger log, boolean bypassDialog) throws org.apache.http.client.HttpResponseExceptionCreate a JSON post request to Zendesk to create a support ticket.- Parameters:
filePaths
- files to attach to the ticketuserName
- user for which the ticket will be createdemail
- users emailsubject
- subject of the ticketuserMessage
- user comment on the tickettags
- tags for the ticketlog
- logbypassDialog
- if the dialog for large zip files should be bypassed- Returns:
- ticket number if all went well, -1 if not
- Throws:
org.apache.http.client.HttpResponseException
- HTTP error response
-
getJavaSessionInfo
Gets system properties.- Returns:
- system properties
-
getConfigurationParameters
Gets the Iris configuration- Returns:
- Iris configuration
-