This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.servlet.ServletInputStream; | |
| import javax.servlet.http.HttpServletRequest; | |
| import javax.servlet.http.HttpServletRequestWrapper; | |
| import java.io.*; | |
| public class BufferedRequestWrapper extends HttpServletRequestWrapper { | |
| private ByteArrayInputStream bais = null; | |
| private ByteArrayOutputStream baos = null; | |
| private BufferedServletInputStream bsis = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.jayway.jsonpath.Configuration; | |
| import com.jayway.jsonpath.JsonPath; | |
| import lombok.extern.slf4j.Slf4j; | |
| @Slf4j | |
| public class EventUtils { | |
| public static String detectEventType(String json) { | |
| String eventType = null; | |
| Object document = Configuration.defaultConfiguration().jsonProvider().parse(json); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.subbu.jsp</groupId> | |
| <artifactId>JspServlets</artifactId> | |
| <version>1.0-SNAPSHOT</version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package uk.org.codebox.mosaic; | |
| import java.awt.image.BufferedImage; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.HashSet; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; |