Package com.illumon.iris.console.events
Class HTTPToZendeskUtils
java.lang.Object
com.illumon.iris.console.events.HTTPToZendeskUtils
Utilities to send HTTP requests to Zendesk
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Thrown when the zip file is too large and the user cancels the ticket. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets the Iris configurationstatic String
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.HttpResponseException Create 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
-