org.jasig.cas.integration.restlet
Class TicketResource

java.lang.Object
  extended by org.restlet.Handler
      extended by org.restlet.resource.Resource
          extended by org.jasig.cas.integration.restlet.TicketResource

public class TicketResource
extends org.restlet.resource.Resource

Handles the creation of Ticket Granting Tickets.

Since:
3.3
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Nested Class Summary
protected  class TicketResource.RestletWebRequest
           
 
Constructor Summary
TicketResource()
           
 
Method Summary
 void acceptRepresentation(org.restlet.resource.Representation entity)
           
 boolean allowGet()
           
 boolean allowPost()
           
protected  org.restlet.data.Status determineStatus()
          Template method for determining which status to return on a successful ticket creation.
protected  Credentials obtainCredentials()
           
 
Methods inherited from class org.restlet.resource.Resource
allowDelete, allowPut, delete, getPreferredRepresentation, getPreferredVariant, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation
 
Methods inherited from class org.restlet.Handler
allowHead, allowOptions, generateRef, getAllowedMethods, getApplication, getContext, getLogger, getMatrix, getQuery, getRequest, getResponse, handleHead, handleOptions, setContext, setRequest, setResponse, updateAllowedMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TicketResource

public TicketResource()
Method Detail

allowGet

public final boolean allowGet()
Overrides:
allowGet in class org.restlet.resource.Resource

allowPost

public final boolean allowPost()
Overrides:
allowPost in class org.restlet.resource.Resource

acceptRepresentation

public final void acceptRepresentation(org.restlet.resource.Representation entity)
                                throws org.restlet.resource.ResourceException
Overrides:
acceptRepresentation in class org.restlet.resource.Resource
Throws:
org.restlet.resource.ResourceException

determineStatus

protected org.restlet.data.Status determineStatus()
Template method for determining which status to return on a successful ticket creation. This method exists for compatibility reasons with bad clients (i.e. Flash) that can't process 201 with a Location header.

Returns:
the status to return.

obtainCredentials

protected Credentials obtainCredentials()


Copyright © 2004-2011 Jasig. All Rights Reserved.