Uploaded image for project: 'Apache AWF'
  1. Apache AWF
  2. AWF-151

Annotate RequestHandlers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None

    Description

      Just a thought.
      Proposal:

      @Path("/")
      class SynchronousRequestHandler extends RequestHandler {

      @Override
      public void get(HttpRequest request, HttpResponse response)

      { response.write("hello world!"); }

      }

      public static void main(String[] args)

      { List <RequestHandler> handlers = new LinkedList<RequestHandler>(); handlers.add(new SynchronousRequestHandler()); HttpServer server = new HttpServer(new Application(handlers)); server.listen(8080); IOLoop.INSTANCE.start(); }

      Attachments

        1. deft-100.patch
          183 kB
          Johnathan Meehan

        Activity

          People

            jmeehan Johnathan Meehan
            niklas Niklas Therning
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: