org.kohsuke.jnt
Class ConnectionInfo

java.lang.Object
  extended by org.kohsuke.jnt.ConnectionInfo

public class ConnectionInfo
extends Object

Represents the parameters needed to establish connection to java.net.

Author:
Kohsuke Kawaguchi

Field Summary
 String password
          Username and password.
 int proxyPort
          If proxyServer is non-null, this is the HTTP proxy port number.
 String proxyServer
          If the access should go through proxy, the HTTP proxy host name.
 String userName
          Username and password.
 
Constructor Summary
ConnectionInfo()
          Creates a connection information by reading the default account file at ~/.java.net
ConnectionInfo(File accountFile)
          Creates a connection information by reading the specified parameter file.
ConnectionInfo(String userName, String password)
           
 
Method Summary
static File getDefaultAccountFile()
          Gets the default ".java.net" config property file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userName

public String userName
Username and password.


password

public String password
Username and password.


proxyServer

public String proxyServer
If the access should go through proxy, the HTTP proxy host name.


proxyPort

public int proxyPort
If proxyServer is non-null, this is the HTTP proxy port number.

Constructor Detail

ConnectionInfo

public ConnectionInfo(String userName,
                      String password)

ConnectionInfo

public ConnectionInfo()
               throws ProcessingException
Creates a connection information by reading the default account file at ~/.java.net

Throws:
ProcessingException

ConnectionInfo

public ConnectionInfo(File accountFile)
               throws ProcessingException
Creates a connection information by reading the specified parameter file.

Throws:
ProcessingException
Method Detail

getDefaultAccountFile

public static File getDefaultAccountFile()
Gets the default ".java.net" config property file.



Copyright © 2003-2010 Kohsuke Kawaguchi. All Rights Reserved.