net.sourceforge.atunes.kernel.modules.proxy
Class Proxy

java.lang.Object
  extended by java.net.Proxy
      extended by net.sourceforge.atunes.kernel.modules.proxy.Proxy
All Implemented Interfaces:
java.io.Serializable

public class Proxy
extends java.net.Proxy
implements java.io.Serializable

The Class Proxy.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Proxy
java.net.Proxy.Type
 
Field Summary
 
Fields inherited from class java.net.Proxy
NO_PROXY
 
Constructor Summary
Proxy(java.net.Proxy.Type type, java.lang.String url, int port, java.lang.String user, java.lang.String password)
          Instantiates a new proxy.
 
Method Summary
 java.net.URLConnection getConnection(java.net.URL u)
          Gets the connection.
 java.lang.String getPassword()
          Gets the password.
 int getPort()
          Gets the port.
 java.lang.String getUrl()
          Gets the url.
 java.lang.String getUser()
          Gets the user.
 
Methods inherited from class java.net.Proxy
address, equals, hashCode, toString, type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Proxy

public Proxy(java.net.Proxy.Type type,
             java.lang.String url,
             int port,
             java.lang.String user,
             java.lang.String password)
      throws java.net.UnknownHostException,
             java.io.IOException
Instantiates a new proxy.

Parameters:
type - the type
url - the url
port - the port
user - the user
password - the password
Throws:
java.net.UnknownHostException - the unknown host exception
java.io.IOException - Signals that an I/O exception has occurred.
Method Detail

getConnection

public java.net.URLConnection getConnection(java.net.URL u)
                                     throws java.io.IOException
Gets the connection.

Parameters:
u - the u
Returns:
the connection
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getPassword

public java.lang.String getPassword()
Gets the password.

Returns:
the password

getPort

public int getPort()
Gets the port.

Returns:
the port

getUrl

public java.lang.String getUrl()
Gets the url.

Returns:
the url

getUser

public java.lang.String getUser()
Gets the user.

Returns:
the user


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.