com.sun.jersey.server.linking.impl
Class LinkProcessor<T>

java.lang.Object
  extended by com.sun.jersey.server.linking.impl.LinkProcessor<T>

public class LinkProcessor<T>
extends Object

Processes @Link and @LinkHeaders annotations on entity classes and adds appropriate HTTP Link headers.

Author:
mh124079

Constructor Summary
LinkProcessor(Class<T> c)
           
 
Method Summary
 void processLinkHeaders(T entity, UriInfo uriInfo, MultivaluedMap<String,Object> headers)
          Process any Link annotations on the supplied entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkProcessor

public LinkProcessor(Class<T> c)
Method Detail

processLinkHeaders

public void processLinkHeaders(T entity,
                               UriInfo uriInfo,
                               MultivaluedMap<String,Object> headers)
Process any Link annotations on the supplied entity.

Parameters:
entity - the entity object returned by the resource method
uriInfo - the uriInfo for the request
headers - the map into which the headers will be added


Copyright © 2013 Oracle Corporation. All Rights Reserved.