Class Image

java.lang.Object
cool.scx.web.vo.Image
All Implemented Interfaces:
cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Exception>, BaseVo

public abstract class Image extends Object implements BaseVo
Image
Version:
0.0.1
Author:
scx567888
  • Constructor Details

    • Image

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

    • of

      public static Image of(Path file)
    • of

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

      public final void apply(cool.scx.http.routing.RoutingContext context) throws cool.scx.http.exception.BadRequestException
      Specified by:
      apply in interface cool.scx.function.Function1Void<cool.scx.http.routing.RoutingContext, Exception>
      Throws:
      cool.scx.http.exception.BadRequestException
    • imageHandler

      public abstract void imageHandler(cool.scx.http.routing.RoutingContext context)