コード例 #1
0
ファイル: ServletFacesContext.cs プロジェクト: nlhepler/mono
		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;
		}
コード例 #2
0
 public void include(ServletRequest sr1, ServletResponse sr2)
 {
 }
コード例 #3
0
 public void forward(ServletRequest sr1, ServletResponse sr2)
 {
 }
コード例 #4
0
		/// <summary>
		/// Dispatches client requests to the protected
		/// <code>service</code> method.
		/// </summary>
		public override void service(ServletRequest @req, ServletResponse @res)
		{
		}
コード例 #5
0
		private static Object setAttribute (ServletRequest request, String attrname, Object newval) {
			Object oldval = request.getAttribute (attrname);
			request.setAttribute (attrname, newval);
			return oldval;
		}
コード例 #6
0
		public static Object getTextWriter (ServletRequest request) {
			return request.getAttribute (TEXT_WRITER_ATTRIBUTE_NAME);
		}
コード例 #7
0
		public static Object [] getServletParams (ServletRequest request) {
			return (Object []) request.getAttribute (SERVLET_PARAMS_ATTRIBUTE_NAME);
		}
コード例 #8
0
		public static Object getAspPage (ServletRequest request) {
			return request.getAttribute (ASPPAGE_ATTRIBUTE_NAME);
		}
コード例 #9
0
		public static String getServletPath (ServletRequest request) {
			return (String) request.getAttribute (SERVLET_PATH_ATTRIBUTE_NAME);
		}
コード例 #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);
		}
コード例 #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);