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
// Queue class for serializing AJAX calls. | |
// | |
// Inspired by Raynos http://stackoverflow.com/a/4797596/1194060 | |
// | |
// Queue has a public append method that expects some kind of task. | |
// A task is a generic function passed as callback. | |
// Constructor expects a handler which is a method that takes a ajax task | |
// and a callback. Queue expects the handler to deal with the ajax and run | |
// the callback when it's finished |
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 javax.net.ssl.SSLParameters; | |
import javax.net.ssl.SSLSocket; | |
import javax.net.ssl.SSLSocketFactory; | |
import java.io.*; | |
/** Establish a SSL connection to a host and port, writes a byte and | |
* prints the response. See | |
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services | |
*/ | |
public class SSLPoke { |