Class HttpHandler

java.lang.Object
org.yamcs.http.HttpHandler
Direct Known Subclasses:
ApiHandler, BodyHandler, FaviconHandler, RobotsTxtHandler, SpnegoAuthModule, StaticFileHandler, WellKnownHandler

public abstract class HttpHandler extends Object
  • Field Details

    • MIME

      protected static final Mimetypes MIME
    • log

      protected final Log log
  • Constructor Details

    • HttpHandler

      public HttpHandler()
  • Method Details

    • requireAuth

      public abstract boolean requireAuth()
    • handle

      public abstract void handle(HandlerContext ctx)
    • doHandle

      protected void doHandle(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.HttpRequest msg, User user)
    • getAccessTokenFromCookie

      public static String getAccessTokenFromCookie(io.netty.handler.codec.http.HttpRequest req)