1 13 package com.tonbeller.wcf.controller; 14 15 import java.util.Locale ; 16 17 import javax.servlet.http.HttpServletRequest ; 18 import javax.servlet.http.HttpServletResponse ; 19 20 import com.tonbeller.tbutils.res.Resources; 21 import com.tonbeller.wcf.convert.Converter; 22 import com.tonbeller.wcf.format.Formatter; 23 24 33 public interface RequestContextFactory { 34 35 38 RequestContext createContext(HttpServletRequest request, HttpServletResponse response); 39 40 Formatter getFormatter(); 41 Converter getConverter(); 42 Locale getLocale(); 43 Resources getResources(); 44 45 46 void setLocale(Locale locale); 47 void setLocale(HttpServletRequest session, Locale locale); 48 49 String getRemoteUser(); 50 String getRemoteDomain(); 51 52 } 53 | Popular Tags |