org.purl.sword.client
Class PostDestination

java.lang.Object
  extended by org.purl.sword.client.PostDestination

public class PostDestination
extends Object

Details for a destination. This is used to represent a destination. If expressed as a string, the destination looks like:

 []:@
 

Author:
Neil Taylor

Constructor Summary
PostDestination()
          Create a new instance.
PostDestination(String url, String username, String password, String onBehalfOf)
          Create a new instance.
 
Method Summary
 String getOnBehalfOf()
           
 String getPassword()
           
 String getUrl()
           
 String getUsername()
           
 void setOnBehalfOf(String onBehalfOf)
           
 void setPassword(String password)
           
 void setUrl(String url)
           
 void setUsername(String username)
           
 String toString()
          Create a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PostDestination

public PostDestination()
Create a new instance.


PostDestination

public PostDestination(String url,
                       String username,
                       String password,
                       String onBehalfOf)
Create a new instance.

Parameters:
url - The url.
username - The username.
password - The password.
onBehalfOf - The onBehalfOf id.
Method Detail

getUrl

public String getUrl()
Returns:
the url

setUrl

public void setUrl(String url)
Parameters:
url - the url to set

getUsername

public String getUsername()
Returns:
the username

setUsername

public void setUsername(String username)
Parameters:
username - the username to set

getPassword

public String getPassword()
Returns:
the password

setPassword

public void setPassword(String password)
Parameters:
password - the password to set

getOnBehalfOf

public String getOnBehalfOf()
Returns:
the onBehalfOf

setOnBehalfOf

public void setOnBehalfOf(String onBehalfOf)
Parameters:
onBehalfOf - the onBehalfOf to set

toString

public String toString()
Create a string representation of this object.

Overrides:
toString in class Object
Returns:
The string.


Copyright © 2011 DuraSpace. All Rights Reserved.