KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > controller > RequestContextFactory


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.controller;
14
15 import java.util.Locale JavaDoc;
16
17 import javax.servlet.http.HttpServletRequest JavaDoc;
18 import javax.servlet.http.HttpServletResponse JavaDoc;
19
20 import com.tonbeller.tbutils.res.Resources;
21 import com.tonbeller.wcf.convert.Converter;
22 import com.tonbeller.wcf.format.Formatter;
23
24 /**
25  * creates a RequestContext from request / response.
26  * SPI interface only. Use RequestContextFactoryFinder to create a context.
27  *
28  * @see RequestContextFactoryFinder#createContext(HttpServletRequest, HttpServletResponse, boolean)
29  * @see RequestContext#instance()
30  *
31  * @author av
32  */

33 public interface RequestContextFactory {
34
35   /**
36    * create a new context
37    */

38   RequestContext createContext(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response);
39   
40   Formatter getFormatter();
41   Converter getConverter();
42   Locale JavaDoc getLocale();
43   Resources getResources();
44
45   /** @deprecated */
46   void setLocale(Locale JavaDoc locale);
47   void setLocale(HttpServletRequest JavaDoc session, Locale JavaDoc locale);
48
49   String JavaDoc getRemoteUser();
50   String JavaDoc getRemoteDomain();
51
52 }
53
Popular Tags