net.authorize.arb.http
Class HttpUtil

java.lang.Object
  extended by net.authorize.arb.http.HttpUtil

public class HttpUtil
extends Object

WRITEME: The documentation for this type (HttpUtil) is incomplete. (brpocock@star-hope.org, Sep 23, 2009)

Author:
brpocock@star-hope.org

Nested Class Summary
private static class HttpUtil.SavingTrustManager
          WRITEME: The documentation for this type (SavingTrustManager) is incomplete.
 
Field Summary
static String CERTIFICATE_FILE
          WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) CERTIFICATE_FILE (HttpUtil)
private static String default_password
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) default_password (HttpUtil)
private  String hostProperty
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) hostProperty (HttpUtil)
static int HTTP_PORT
          WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) HTTP_PORT (HttpUtil)
static int HTTPS_PORT
          WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) HTTPS_PORT (HttpUtil)
private  boolean is_secure
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) is_secure (HttpUtil)
private  KeyStore keys
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) keys (HttpUtil)
private  String pathProperty
          WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) pathProperty (HttpUtil)
 
Constructor Summary
HttpUtil(URL url)
           
 
Method Summary
 void cleanup()
          WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)
private  String doSocketTransfer(Socket socket, String path, String post_data)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  String getHttpSocket(String thatHost, String path, String post_data)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
private  KeyStore getKeyStore(char[] certificate_password)
          WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009)
private  String getSecureHttpSocket(String thatHost, String path, String post_data)
          WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009)
private  String getSecureHttpSocket(String password, String host, String path, String post_data)
          WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)
 String getURL()
          WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)
 boolean initializeKeyStore(String theHost)
          WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)
 boolean initializeKeyStore(String password, String host)
          WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)
 String postUrl(String data)
          WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CERTIFICATE_FILE

public static final String CERTIFICATE_FILE
WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) CERTIFICATE_FILE (HttpUtil)

See Also:
Constant Field Values

default_password

private static final String default_password
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) default_password (HttpUtil)

See Also:
Constant Field Values

HTTP_PORT

public static final int HTTP_PORT
WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) HTTP_PORT (HttpUtil)

See Also:
Constant Field Values

HTTPS_PORT

public static final int HTTPS_PORT
WRITEME: document this field (brpocock@star-hope.org, Sep 23, 2009) HTTPS_PORT (HttpUtil)

See Also:
Constant Field Values

hostProperty

private String hostProperty
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) hostProperty (HttpUtil)


is_secure

private boolean is_secure
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) is_secure (HttpUtil)


keys

private KeyStore keys
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) keys (HttpUtil)


pathProperty

private String pathProperty
WRITEME: document this field (brpocock@star-hope.org, Nov 19, 2009) pathProperty (HttpUtil)

Constructor Detail

HttpUtil

public HttpUtil(URL url)
Parameters:
url - WRITEME
Method Detail

cleanup

public void cleanup()
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)


doSocketTransfer

private String doSocketTransfer(Socket socket,
                                String path,
                                String post_data)
                         throws IOException
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
socket - WRITEME
path - WRITEME
post_data - WRITEME
Returns:
WRITEME
Throws:
IOException - WRITEME

getHttpSocket

private String getHttpSocket(String thatHost,
                             String path,
                             String post_data)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
thatHost - WRITEME
path - WRITEME
post_data - WRITEME
Returns:
WRITEME

getKeyStore

private KeyStore getKeyStore(char[] certificate_password)
WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009)

Parameters:
certificate_password - WRITEME
Returns:
WRITEME

getSecureHttpSocket

private String getSecureHttpSocket(String thatHost,
                                   String path,
                                   String post_data)
WRITEME: document this method (brpocock@star-hope.org, Oct 13, 2009)

Parameters:
thatHost - WRITEME
path - WRITEME
post_data - WRITEME
Returns:
WRITEME

getSecureHttpSocket

private String getSecureHttpSocket(String password,
                                   String host,
                                   String path,
                                   String post_data)
WRITEME: document this method (brpocock@star-hope.org, Nov 19, 2009)

Parameters:
password - WRITEME
host - WRITEME
path - WRITEME
post_data - WRITEME
Returns:
WRITEME

getURL

public String getURL()
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)

Returns:
WRITEME

initializeKeyStore

public boolean initializeKeyStore(String theHost)
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)

Parameters:
theHost - WRITEME
Returns:
WRITEME

initializeKeyStore

public boolean initializeKeyStore(String password,
                                  String host)
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)

Parameters:
password - WRITEME
host - WRITEME
Returns:
WRITEME

postUrl

public String postUrl(String data)
WRITEME: document this method (brpocock@star-hope.org, Sep 23, 2009)

Parameters:
data - WRITEME
Returns:
WRITEME