[OmniFaces utilities] The
getFacesServletRegistration()
returns the ServletRegistration
associated with the FacesServlet
.Method:
Usage:
ExternalContext
externalContext = FacesContext.getCurrentInstance().getExternalContext();
HttpServletRequest
request = (HttpServletRequest) externalContext.getRequest();
ServletRegistration
servletRegistration = Platform.getFacesServletRegistration(request.getServletContext());
// e.g. javax.faces.webapp.FacesServlet
LOG.info("Servlet registration class name: " + servletRegistration.getClassName());
Niciun comentariu :
Trimiteți un comentariu