API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web.server. JOTServerRequestHandler View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.jot.web.server;

import java.net.Socket;
import java.util.Hashtable;

/**
 * Handle a request 
 * There will be one inctance of this per request/thread
 * @author thibautc
 */
public interface JOTServerRequestHandler {
    /**
     * Handle a client request
     * Each server request thread will be handed a new Instance of this by JOTMiniServ
     * So you should not have to worry about thread safety much in impl.
     * @param client
     */
    public void handle(Socket socket) throws Exception;
    
    /**
     * Provide optional parameters, will be called before handle() 
     * @param params
     */
    public void init(Hashtable params);
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar