net.dpml.transit.model
Interface ProxyModel

All Superinterfaces:
Remote

public interface ProxyModel
extends Remote

The ProxyModel is an interface implemented by objects that manage the configuration of transit proxy settings.

Version:
1.0.3
Author:
Digital Product Meta Library

Method Summary
 void addProxyListener(ProxyListener listener)
          Add a proxy listener to the model.
 PasswordAuthentication getAuthentication()
          Return the proxy authentication or null if not defined.
 String[] getExcludes()
          Return the set of excluded hosts as an array.
 URL getHost()
          Return the proxy host url.
 RequestIdentifier getRequestIdentifier()
          Return the proxy host request identifier.
 void removeProxyListener(ProxyListener listener)
          Remove a proxy listener from the model.
 

Method Detail

getHost

URL getHost()
            throws RemoteException
Return the proxy host url.

Returns:
the proxy host (possibly null)
Throws:
RemoteException - if a remote exception occurs

getAuthentication

PasswordAuthentication getAuthentication()
                                         throws RemoteException
Return the proxy authentication or null if not defined.

Returns:
the proxy authentication credentials
Throws:
RemoteException - if a remote exception occurs

getRequestIdentifier

RequestIdentifier getRequestIdentifier()
                                       throws RemoteException
Return the proxy host request identifier.

Returns:
the request identifier for the proxy host or null if not defined.
Throws:
RemoteException - if a remote exception occurs

getExcludes

String[] getExcludes()
                     throws RemoteException
Return the set of excluded hosts as an array.

Returns:
the excluded host array
Throws:
RemoteException - if a remote exception occurs

addProxyListener

void addProxyListener(ProxyListener listener)
                      throws RemoteException
Add a proxy listener to the model.

Parameters:
listener - the listener to add
Throws:
RemoteException - if a remote exception occurs

removeProxyListener

void removeProxyListener(ProxyListener listener)
                         throws RemoteException
Remove a proxy listener from the model.

Parameters:
listener - the listener to remove
Throws:
RemoteException - if a remote exception occurs