Class Link

java.lang.Object
com.netscape.certsrv.base.Link
All Implemented Interfaces:
JSONSerializer

public class Link extends Object implements JSONSerializer
Author:
alee
  • Constructor Details

    • Link

      public Link()
    • Link

      public Link(String relationship, String href, String type)
    • Link

      public Link(String relationship, URI uri)
  • Method Details

    • getRelationship

      public String getRelationship()
      Returns:
      the relationship
    • setRelationship

      public void setRelationship(String relationship)
      Parameters:
      relationship - the relationship to set
    • getHref

      public String getHref()
      Returns:
      the href
    • setHref

      public void setHref(String href)
      Parameters:
      href - the href to set
    • getType

      public String getType()
      Returns:
      the type
    • setType

      public void setType(String type)
      Parameters:
      type - the type to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toDOM

      public Element toDOM(Document document)
    • fromDOM

      public static Link fromDOM(Element linkElement)