Class PostDestination

java.lang.Object
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:
 <user>[<onBehalfOf>]:<password>@<url>
 
Author:
Neil Taylor
  • Constructor Details

    • 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 Details

    • 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.