Class TicketStatusResource


  • @RestController("ticketStatusResourceRestController")
    public class TicketStatusResource
    extends java.lang.Object
    RestController implementation of CAS' REST API.

    This class implements main CAS RESTful resource for vending/deleting TGTs and vending STs:

    • POST /v1/tickets
    • POST /v1/tickets/{TGT-id}
    • GET /v1/tickets/{TGT-id}
    • DELETE /v1/tickets/{TGT-id}
    Since:
    4.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<java.lang.String> getTicketStatus​(java.lang.String id)
      Determine the status of a given ticket id, whether it's valid, exists, expired, etc.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TicketStatusResource

        public TicketStatusResource()
    • Method Detail

      • getTicketStatus

        @GetMapping("/v1/tickets/{id:.+}")
        public org.springframework.http.ResponseEntity<java.lang.String> getTicketStatus​(@PathVariable("id")
                                                                                         java.lang.String id)
        Determine the status of a given ticket id, whether it's valid, exists, expired, etc.
        Parameters:
        id - ticket id
        Returns:
        ResponseEntity representing RESTful response