JavaScript is disabled on your browser.
Skip navigation links
gnu.kawa.servlet

Class KawaHttpHandler

  • All Implemented Interfaces:
    com.sun.net.httpserver.HttpHandler


    public class KawaHttpHandler
    extends java.lang.Object
    implements com.sun.net.httpserver.HttpHandler
    Web server support glue built on JDK 6's built-in HttpServer.
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static int serverBacklog
      static com.sun.net.httpserver.HttpServer serverInstance
    • Constructor Summary

      Constructors
      Constructor and Description
      KawaHttpHandler (gnu.kawa.io.Path resourceRoot)
      KawaHttpHandler (java.lang.String resourceRoot)
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      static void addAutoHandler (java.lang.String uriRoot, java.lang.String resourceRoot)
      static com.sun.net.httpserver.HttpContext addHandler (java.lang.String uriRoot, com.sun.net.httpserver.HttpHandler handler)
      static void addStaticFileHandler (java.lang.String uriRoot, java.lang.String pathPrefix, java.lang.String defaultUrl, boolean exitOnClose)
      static com.sun.net.httpserver.HttpServer getServerInstance ()
      void handle (com.sun.net.httpserver.HttpExchange t)
      static void maybeStopServer ()
      static com.sun.net.httpserver.HttpServer startServer (int port, java.io.PrintStream printPortHere)
      • Methods inherited from class java.lang.Object

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

      • serverInstance

        public static com.sun.net.httpserver.HttpServer serverInstance
      • serverBacklog

        public static int serverBacklog
    • Constructor Detail

      • KawaHttpHandler

        public KawaHttpHandler(java.lang.String resourceRoot)
      • KawaHttpHandler

        public KawaHttpHandler(gnu.kawa.io.Path resourceRoot)
    • Method Detail

      • handle

        public void handle(com.sun.net.httpserver.HttpExchange t)
         throws java.io.IOException
        Specified by:
        handle in interface com.sun.net.httpserver.HttpHandler
        Throws:
        java.io.IOException
      • getServerInstance

        public static com.sun.net.httpserver.HttpServer getServerInstance()
         throws java.io.IOException
        Throws:
        java.io.IOException
      • maybeStopServer

        public static void maybeStopServer()
      • addAutoHandler

        public static void addAutoHandler(java.lang.String uriRoot,
         java.lang.String resourceRoot)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • addHandler

        public static com.sun.net.httpserver.HttpContext addHandler(java.lang.String uriRoot,
         com.sun.net.httpserver.HttpHandler handler)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • addStaticFileHandler

        public static void addStaticFileHandler(java.lang.String uriRoot,
         java.lang.String pathPrefix,
         java.lang.String defaultUrl,
         boolean exitOnClose)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • startServer

        public static com.sun.net.httpserver.HttpServer startServer(int port,
         java.io.PrintStream printPortHere)
         throws java.io.IOException
        Throws:
        java.io.IOException
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /