Class Image

java.lang.Object
cool.scx.web.vo.Image
All Implemented Interfaces:
ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>, BaseVo

public abstract class Image extends Object implements BaseVo

Image class.

Version:
1.0.10
Author:
scx567888
  • Constructor Details

    • Image

      protected Image(File _file)
      用来校验 file 是否可用
      Parameters:
      _file - a File object.
  • Method Details

    • of

      public static Image of(File file)
    • of

      public static Image of(File file, Integer width, Integer height, net.coobird.thumbnailator.geometry.Position position)
    • accept

      public final void accept(io.vertx.ext.web.RoutingContext context) throws BadRequestException

      sendToClient

      Specified by:
      accept in interface ScxConsumer<io.vertx.ext.web.RoutingContext,Exception>
      Throws:
      BadRequestException
    • imageHandler

      public abstract void imageHandler(io.vertx.ext.web.RoutingContext context)