org.jasig.cas.ticket.registry
Class AbstractTicketRegistry

java.lang.Object
  extended by org.jasig.cas.ticket.registry.AbstractTicketRegistry
All Implemented Interfaces:
TicketRegistry
Direct Known Subclasses:
AbstractDistributedTicketRegistry, DefaultTicketRegistry

public abstract class AbstractTicketRegistry
extends java.lang.Object
implements TicketRegistry

Since:
3.0.4

This is a published and supported CAS Server 3 API.

Version:
$Revision: 48180 $ $Date: 2010-03-14 00:05:58 -0500 (Sun, 14 Mar 2010) $
Author:
Scott Battaglia

Field Summary
protected  org.slf4j.Logger log
          The Commons Logging log instance.
 
Constructor Summary
AbstractTicketRegistry()
           
 
Method Summary
 Ticket getTicket(java.lang.String ticketId, java.lang.Class<? extends Ticket> clazz)
          Retrieve a ticket from the registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jasig.cas.ticket.registry.TicketRegistry
addTicket, deleteTicket, getTicket, getTickets
 

Field Detail

log

protected final org.slf4j.Logger log
The Commons Logging log instance.

Constructor Detail

AbstractTicketRegistry

public AbstractTicketRegistry()
Method Detail

getTicket

public final Ticket getTicket(java.lang.String ticketId,
                              java.lang.Class<? extends Ticket> clazz)
Description copied from interface: TicketRegistry
Retrieve a ticket from the registry. If the ticket retrieved does not match the expected class, an InvalidTicketException is thrown.

Specified by:
getTicket in interface TicketRegistry
Parameters:
ticketId - the id of the ticket we wish to retrieve.
clazz - The expected class of the ticket we wish to retrieve.
Returns:
the requested ticket.
Throws:
java.lang.IllegalArgumentException - if class is null.
java.lang.ClassCastException - if class does not match requested ticket class.


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.