public class ResourceReferenceAndStringData
- extends Object
A data holder built for the
AbstractResourceAggregatingHeaderResponse that groups the
resource reference with a boolean representing whether it is css (or, if not, it is js), and the
string that was passed in to the responsible render*Reference method (for JS, this is ID, for
CSS, this is media).
It acts as a temporary data holder while the IHeaderContributors are being called so that at the
end of their traversal, we can render these references in an aggregated way, and still have the
appropriate data (i.e. was it CSS or JS) to render it properly.
- Jeremy Thomerson
public ResourceReferenceAndStringData(ResourceReference reference,
- Construct with fields.
public ResourceReference getReference()
- the resource reference that the user rendered
public String getString()
- the string representing media (if this isCss()), or id (if not, meaning it's js)
public boolean isCss()
- true if this is css, false if it's js
public int hashCode()
hashCode in class
public boolean equals(Object obj)
equals in class
public String toString()
toString in class
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.