com.jgoodies.bookfinder.request
Class WebService

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by com.jgoodies.bookfinder.request.WebService
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, Serializable

public final class WebService
extends com.jgoodies.binding.beans.Model

Describes an Amazon web service and provides bound properties for the host, path, tag and token.

Version:
$Revision: 1.7 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static String PROPERTYNAME_ACCESS_KEY
           
static String PROPERTYNAME_HOST
           
static String PROPERTYNAME_PATH
           
static String PROPERTYNAME_TAG
           
 
Constructor Summary
WebService()
           
 
Method Summary
 String getAccessKey()
          Returns the access key used to identify the access at amazon.
 String getHost()
          Returns the web services' host.
 String getPath()
          Returns the web services' path.
 String getTag()
          Returns the tag.
 boolean hasToken()
          Checks and answers if we have an access key.
 void restoreFrom(Preferences prefs)
          Restores the persistent properties from the specified Preferences.
 void setAccessKey(String newAccessKey)
          Sets the given string as new access key.
 void setHost(String newHost)
          Sets a new host.
 void setPath(String newPath)
          Sets a new path.
 void setTag(String newTag)
          Sets a new tag.
 void storeIn(Preferences prefs)
          Stores the persistent properties in the specified Preferences.
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_HOST

public static final String PROPERTYNAME_HOST
See Also:
Constant Field Values

PROPERTYNAME_PATH

public static final String PROPERTYNAME_PATH
See Also:
Constant Field Values

PROPERTYNAME_TAG

public static final String PROPERTYNAME_TAG
See Also:
Constant Field Values

PROPERTYNAME_ACCESS_KEY

public static final String PROPERTYNAME_ACCESS_KEY
See Also:
Constant Field Values
Constructor Detail

WebService

public WebService()
Method Detail

getHost

public String getHost()
Returns the web services' host.

Returns:
the web services' host

getPath

public String getPath()
Returns the web services' path.

Returns:
the web services' path.

getTag

public String getTag()
Returns the tag.

Returns:
the tag

getAccessKey

public String getAccessKey()
Returns the access key used to identify the access at amazon.

Returns:
the access key

hasToken

public boolean hasToken()
Checks and answers if we have an access key.

Returns:
true indicates we have a key, false if none is available

setHost

public void setHost(String newHost)
Sets a new host.

Parameters:
newHost - the new host to set

setPath

public void setPath(String newPath)
Sets a new path.

Parameters:
newPath - the new path to set

setTag

public void setTag(String newTag)
Sets a new tag.

Parameters:
newTag - the new tag to set

setAccessKey

public void setAccessKey(String newAccessKey)
Sets the given string as new access key.

Parameters:
newAccessKey - the new access key to set

restoreFrom

public void restoreFrom(Preferences prefs)
Restores the persistent properties from the specified Preferences.

Parameters:
prefs - the Preferences object that holds the property values

storeIn

public void storeIn(Preferences prefs)
Stores the persistent properties in the specified Preferences.

Parameters:
prefs - the Preferences object that holds the property values


Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.