com.sun.jini.jeri.internal.http
Class HttpServerConnection.Dispatcher

java.lang.Object
  extended by com.sun.jini.jeri.internal.http.HttpServerConnection.Dispatcher
All Implemented Interfaces:
Runnable
Enclosing class:
HttpServerConnection

private class HttpServerConnection.Dispatcher
extends Object
implements Runnable

Incoming request dispatcher.


Constructor Summary
private HttpServerConnection.Dispatcher()
           
 
Method Summary
private  void handleBadRequest(StartLine inLine, Header inHeader, MessageReader reader)
          Handles unacceptable HTTP request.
private  void handlePing(StartLine inLine, Header inHeader, MessageReader reader)
          Handles ping request.
private  void handleRequest(StartLine inLine, Header inHeader, MessageReader reader)
          Handles "standard" (i.e., dispatchable) request.
 void run()
          Dispatch loop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerConnection.Dispatcher

private HttpServerConnection.Dispatcher()
Method Detail

run

public void run()
Dispatch loop.

Specified by:
run in interface Runnable

handleBadRequest

private void handleBadRequest(StartLine inLine,
                              Header inHeader,
                              MessageReader reader)
                       throws IOException
Handles unacceptable HTTP request.

Throws:
IOException

handlePing

private void handlePing(StartLine inLine,
                        Header inHeader,
                        MessageReader reader)
                 throws IOException
Handles ping request.

Throws:
IOException

handleRequest

private void handleRequest(StartLine inLine,
                           Header inHeader,
                           MessageReader reader)
                    throws IOException
Handles "standard" (i.e., dispatchable) request.

Throws:
IOException


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.