Package org.purl.sword.client
Class PostDestination
java.lang.Object
org.purl.sword.client.PostDestination
Details for a destination. This is used to represent a destination. If
expressed as a string, the destination looks like:
<user>[<onBehalfOf>]:<password>@<url>
- Author:
- Neil Taylor
-
Constructor Summary
ConstructorDescriptionCreate a new instance.PostDestination
(String url, String username, String password, String onBehalfOf) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetUrl()
void
setOnBehalfOf
(String onBehalfOf) void
setPassword
(String password) void
void
setUsername
(String username) toString()
Create a string representation of this object.
-
Constructor Details
-
PostDestination
public PostDestination()Create a new instance. -
PostDestination
Create a new instance.- Parameters:
url
- The url.username
- The username.password
- The password.onBehalfOf
- The onBehalfOf id.
-
-
Method Details
-
getUrl
- Returns:
- the url
-
setUrl
- Parameters:
url
- the url to set
-
getUsername
- Returns:
- the username
-
setUsername
- Parameters:
username
- the username to set
-
getPassword
- Returns:
- the password
-
setPassword
- Parameters:
password
- the password to set
-
getOnBehalfOf
- Returns:
- the onBehalfOf
-
setOnBehalfOf
- Parameters:
onBehalfOf
- the onBehalfOf to set
-
toString
Create a string representation of this object.
-