com.sri.emo.auth
Class SSLClient

java.lang.Object
  extended by com.sri.emo.auth.SSLClient

public class SSLClient
extends Object

This is a sample client that can use grab the contents of a page. The single command line argument is the URL to retrieve. The result is sent to standard out.

Author:
Michael Rimov

Constructor Summary
SSLClient()
           
 
Method Summary
protected  String getUrl()
          Retrieves the URL to connect.
static void main(String[] args)
          Runs the program.
 void run()
          Main method.
protected  void setUrl(String url)
          Sets the URL to connect to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLClient

public SSLClient()
Method Detail

run

public void run()
         throws UnknownHostException,
                IOException
Main method.

Throws:
UnknownHostException
IOException

getUrl

protected String getUrl()
Retrieves the URL to connect.

Returns:

setUrl

protected void setUrl(String url)
Sets the URL to connect to.

Parameters:
url -

main

public static void main(String[] args)
                 throws Exception
Runs the program.

Parameters:
args - The first argument should be the URL to connect to.
Throws:
Exception


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.