package org.jboss.resteasy.spi;
import org.jboss.resteasy.plugins.delegates.LinkHeaderDelegate;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class
{
private Map<String, Link> = new HashMap<String, Link>();
private Map<String, Link> = new HashMap<String, Link>();
private List<Link> = new ArrayList<Link>();
public LinkHeader (final Link link)
{
links.add(link);
return this;
}
public LinkHeader (final String title, final String rel, final String href, final String type)
{
final Link link = new Link(title, rel, href, type, null);
return addLink(link);
}
public Link (String title)
{
return linksByTitle.get(title);
}
public Link (String rel)
{
return linksByRelationship.get(rel);
}
public Map<String, Link> ()
{
return linksByRelationship;
}
public Map<String, Link> ()
{
return linksByTitle;
}
public List<Link> ()
{
return links;
}
public static LinkHeader (String val)
{
return LinkHeaderDelegate.from(val);
}
public String ()
{
return LinkHeaderDelegate.getString(this);
}
}