Exemplo n.º 1
0
		public static ServletFacesContext GetFacesContext (FacesContextFactory facesContextFactory,
																	ServletContext servletContext,
																	ServletRequest servletRequest,
																	ServletResponse servletResponse,
																	Lifecycle lifecycle,
																	HttpContext httpContext,
																	string executionFilePath) {
			FacesContext oldFacesContex = FacesContext.getCurrentInstance ();
			FacesContext wrappedFacesContex = facesContextFactory.getFacesContext (servletContext, servletRequest, servletResponse, lifecycle);
			ExternalContext externalContext = new ServletExternalContext (wrappedFacesContex.getExternalContext (), httpContext, executionFilePath);
			ServletFacesContext context = new ServletFacesContext (wrappedFacesContex, externalContext, httpContext, oldFacesContex);
			return context;
		}
Exemplo n.º 2
0
 public void include(ServletRequest sr1, ServletResponse sr2)
 {
 }
Exemplo n.º 3
0
 public void forward(ServletRequest sr1, ServletResponse sr2)
 {
 }
Exemplo n.º 4
0
		/// <summary>
		/// Dispatches client requests to the protected
		/// <code>service</code> method.
		/// </summary>
		public override void service(ServletRequest @req, ServletResponse @res)
		{
		}
Exemplo n.º 5
0
		private static Object setAttribute (ServletRequest request, String attrname, Object newval) {
			Object oldval = request.getAttribute (attrname);
			request.setAttribute (attrname, newval);
			return oldval;
		}
Exemplo n.º 6
0
		public static Object getTextWriter (ServletRequest request) {
			return request.getAttribute (TEXT_WRITER_ATTRIBUTE_NAME);
		}
Exemplo n.º 7
0
		public static Object [] getServletParams (ServletRequest request) {
			return (Object []) request.getAttribute (SERVLET_PARAMS_ATTRIBUTE_NAME);
		}
Exemplo n.º 8
0
		public static Object getAspPage (ServletRequest request) {
			return request.getAttribute (ASPPAGE_ATTRIBUTE_NAME);
		}
Exemplo n.º 9
0
		public static String getServletPath (ServletRequest request) {
			return (String) request.getAttribute (SERVLET_PATH_ATTRIBUTE_NAME);
		}
Exemplo n.º 10
0
		protected virtual ServletFacesContext GetFacesContext (FacesContextFactory facesContextFactory,
																	ServletContext servletContext,
																	ServletRequest servletRequest,
																	ServletResponse servletResponse,
																	Lifecycle lifecycle,
																	HttpContext httpContext,
																	string executionFilePath) {
			return ServletFacesContext.GetFacesContext (facesContextFactory, servletContext, servletRequest, servletResponse, lifecycle, httpContext, executionFilePath);
		}
Exemplo n.º 11
0
		/// <summary>
		/// Called by the servlet container to allow the servlet to respond to
		/// a request.
		/// </summary>
		abstract public void service(ServletRequest @req, ServletResponse @res);