Class ImageController


  • @RestController
    @RequestMapping("/pics")
    public class ImageController
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageController()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getImage​(java.lang.String cardType)
      This returns an image of a given card.
      • Methods inherited from class java.lang.Object

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

      • ImageController

        public ImageController()
    • Method Detail

      • getImage

        @RequestMapping(value="/{cardType}",
                        method=GET,
                        produces="image/jpeg")
        public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getImage​(@PathVariable("cardType")
                                                                                                                 java.lang.String cardType)
                                                                                                          throws java.io.IOException
        This returns an image of a given card.
        Parameters:
        cardType -
        Returns:
        Throws:
        java.io.IOException