This file contains 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 java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Date; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; | |
import javax.servlet.FilterConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.ServletRequest; | |
import javax.servlet.ServletResponse; |
This file contains 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
# first, set | |
# | |
# http.compression: true | |
# | |
# in config/elasticsearch.yml | |
curl -XDELETE 'localhost:9200/test' | |
rm -f content.json content.json.gz | |
echo '{"content":"Hello World"}' > content.json |
This file contains 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
// Use this in your testLocationTable() method | |
// Test data we're going to insert into the DB to see if it works. | |
String testLocationSetting = "99705"; | |
String testCityName = "North Pole"; | |
double testLatitude = 64.7488; | |
double testLongitude = -147.353; |