edu.internet2.middleware.shibboleth.wayf
Class IdPSite.Compare

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.wayf.IdPSite.Compare
All Implemented Interfaces:
Comparator<IdPSite>
Enclosing class:
IdPSite

public static class IdPSite.Compare
extends Object
implements Comparator<IdPSite>

This allows us to set up sorted lists of entities with respect to the browser request.

See Also:
Comparator.compare(java.lang.Object, java.lang.Object)

Field Summary
private  HttpServletRequest request
          The request.
 
Constructor Summary
private IdPSite.Compare()
          Private default Constructor.
  IdPSite.Compare(HttpServletRequest theRequest)
          Constructor.
 
Method Summary
 int compare(IdPSite o1, IdPSite o2)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

request

private final HttpServletRequest request
The request.

Constructor Detail

IdPSite.Compare

private IdPSite.Compare()
Private default Constructor. Guarantees that req is non null


IdPSite.Compare

public IdPSite.Compare(HttpServletRequest theRequest)
Constructor.

Parameters:
theRequest - the request which drives the comparison.
Method Detail

compare

public int compare(IdPSite o1,
                   IdPSite o2)

Specified by:
compare in interface Comparator<IdPSite>


Copyright © 1999-2012. All Rights Reserved.