|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.bookfinder.request.WebService
public final class WebService
Describes an Amazon web service and provides bound properties for the host, path, tag and token.
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 |
---|
public static final String PROPERTYNAME_HOST
public static final String PROPERTYNAME_PATH
public static final String PROPERTYNAME_TAG
public static final String PROPERTYNAME_ACCESS_KEY
Constructor Detail |
---|
public WebService()
Method Detail |
---|
public String getHost()
public String getPath()
public String getTag()
public String getAccessKey()
public boolean hasToken()
public void setHost(String newHost)
newHost
- the new host to setpublic void setPath(String newPath)
newPath
- the new path to setpublic void setTag(String newTag)
newTag
- the new tag to setpublic void setAccessKey(String newAccessKey)
newAccessKey
- the new access key to setpublic void restoreFrom(Preferences prefs)
prefs
- the Preferences object that holds the property valuespublic void storeIn(Preferences prefs)
prefs
- the Preferences object that holds the property values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |