org.japtproxy.misc
Class Backend

java.lang.Object
  extended by org.japtproxy.misc.Backend

public class Backend
extends java.lang.Object

This class holds the backend configuration.

Version:
$LastChangedRevision: 116 $
Author:
Oliver J. Siegmar

Constructor Summary
Backend(BackendType type)
           
 
Method Summary
 void addUrl(java.net.URL url)
           
 java.io.File getDirectory()
           
 BackendType getType()
           
 java.util.Set<java.net.URL> getUrls()
           
 void setDirectory(java.io.File directory)
           
 void setUrls(java.util.Set<java.net.URL> urls)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Backend

public Backend(BackendType type)
Method Detail

getType

public BackendType getType()

getDirectory

public java.io.File getDirectory()
Returns:
Returns the directory.

setDirectory

public void setDirectory(java.io.File directory)
Parameters:
directory - The directory to set.

getUrls

public java.util.Set<java.net.URL> getUrls()
Returns:
Returns the hosts.

setUrls

public void setUrls(java.util.Set<java.net.URL> urls)
Parameters:
urls - The hosts to set.

addUrl

public void addUrl(java.net.URL url)
Parameters:
url - The host to add.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008. All Rights Reserved.