|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.yale.its.tp.cas.ticket.ActiveTicketCache
Represents a cache of tickets that each expire after a configurable period of inactivity (i.e., not being retrieved).
Constructor Summary | |
ActiveTicketCache(int tolerance)
Constucts a new ActiveTicketCache that will expire tickets after tolerance seconds of inactivity. |
Method Summary | |
java.lang.String |
addTicket(edu.yale.its.tp.cas.ticket.Ticket t)
Adds a new Ticket to the cache, returning a String identifier that uniquely matches the registered Ticket. |
edu.yale.its.tp.cas.ticket.Ticket |
getTicket(java.lang.String ticketId)
Retrieves a Ticket based on a ticket identifier String. |
protected abstract java.lang.String |
newTicketId()
Generates and returns a new, unique ticket ID |
protected abstract edu.yale.its.tp.cas.ticket.Ticket |
retrieveTicket(java.lang.String ticketId)
Retrieves the ticket with the given identifier. |
protected abstract void |
storeTicket(java.lang.String ticketId,
edu.yale.its.tp.cas.ticket.Ticket t)
Stores the given ticket, associating it with the given identifier. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.yale.its.tp.cas.ticket.TicketCache |
deleteTicket |
Constructor Detail |
public ActiveTicketCache(int tolerance)
Method Detail |
protected abstract java.lang.String newTicketId()
protected abstract void storeTicket(java.lang.String ticketId, edu.yale.its.tp.cas.ticket.Ticket t) throws TicketException
TicketException
protected abstract edu.yale.its.tp.cas.ticket.Ticket retrieveTicket(java.lang.String ticketId)
public java.lang.String addTicket(edu.yale.its.tp.cas.ticket.Ticket t) throws TicketException
TicketCache
addTicket
in interface TicketCache
TicketException
public edu.yale.its.tp.cas.ticket.Ticket getTicket(java.lang.String ticketId)
TicketCache
getTicket
in interface TicketCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |