org.jboss.resteasy.spi
Class LinkHeader

java.lang.Object
  extended by org.jboss.resteasy.spi.LinkHeader

public class LinkHeader
extends java.lang.Object

Version:
$Revision: 1 $
Author:
Bill Burke

Constructor Summary
LinkHeader()
           
 
Method Summary
 LinkHeader addLink(Link link)
           
 LinkHeader addLink(java.lang.String title, java.lang.String rel, java.lang.String href, java.lang.String type)
           
 Link getLinkByRelationship(java.lang.String rel)
           
 Link getLinkByTitle(java.lang.String title)
           
 java.util.List<Link> getLinks()
          All the links defined
 java.util.Map<java.lang.String,Link> getLinksByRelationship()
          Index of links by relationship "rel" or "rev"
 java.util.Map<java.lang.String,Link> getLinksByTitle()
          Index of links by title
 java.lang.String toString()
           
static LinkHeader valueOf(java.lang.String val)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkHeader

public LinkHeader()
Method Detail

addLink

public LinkHeader addLink(Link link)

addLink

public LinkHeader addLink(java.lang.String title,
                          java.lang.String rel,
                          java.lang.String href,
                          java.lang.String type)

getLinkByTitle

public Link getLinkByTitle(java.lang.String title)

getLinkByRelationship

public Link getLinkByRelationship(java.lang.String rel)

getLinksByRelationship

public java.util.Map<java.lang.String,Link> getLinksByRelationship()
Index of links by relationship "rel" or "rev"

Returns:

getLinksByTitle

public java.util.Map<java.lang.String,Link> getLinksByTitle()
Index of links by title

Returns:

getLinks

public java.util.List<Link> getLinks()
All the links defined

Returns:

valueOf

public static LinkHeader valueOf(java.lang.String val)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.