Class FacesLocal
- java.lang.Object
- 
- org.omnifaces.util.FacesLocal
 
- 
 public final class FacesLocal extends Object Collection of utility methods for the Faces API that are mainly shortcuts for obtaining stuff from the provided FacesContextargument. In effect, it 'flattens' the hierarchy of nested objects.The difference with Facesis that no one method ofFacesLocalobtains theFacesContextfrom the current thread byFacesContext.getCurrentInstance(). This job is up to the caller. This is more efficient in situations where multiple utility methods needs to be called at the same time. InvokingFacesContext.getCurrentInstance()is at its own an extremely cheap operation, however as it's to be obtained as aThreadLocalvariable, it's during the call still blocking all other running threads for some nanoseconds or so.Note that methods which are directly available on FacesContextinstance itself, such asFacesContext.getExternalContext(),FacesContext.getViewRoot(),FacesContext.isValidationFailed(), etc are not delegated by the this utility class, because it would design technically not make any sense to delegate a single-depth method call like follows:ExternalContext externalContext = FacesLocal.getExternalContext(facesContext); instead of just calling it directly like follows: ExternalContext externalContext = facesContext.getExternalContext(); UsageSome examples (for the full list, check the API documentation): FacesContext context = Faces.getContext(); User user = FacesLocal.getSessionAttribute(context, "user"); Item item = FacesLocal.evaluateExpressionGet(context, "#{item}"); String cookieValue = FacesLocal.getRequestCookie(context, "cookieName"); List<Locale> supportedLocales = FacesLocal.getSupportedLocales(context); FacesLocal.invalidateSession(context); FacesLocal.redirect(context, "login.xhtml");- Since:
- 1.6
- Author:
- Arjan Tijms, Bauke Scholtz
- See Also:
- Servlets
 
- 
- 
Method Summary
 
- 
- 
- 
Method Detail- 
getPackagepublic static Package getPackage(FacesContext context) - See Also:
- Faces.getPackage()
 
 - 
getImplInfopublic static String getImplInfo(FacesContext context) - See Also:
- Faces.getImplInfo()
 
 - 
getServerInfopublic static String getServerInfo(FacesContext context) - See Also:
- Faces.getServerInfo()
 
 - 
getProjectStagepublic static ProjectStage getProjectStage(FacesContext context) - See Also:
- Faces.getProjectStage()
 
 - 
isDevelopmentpublic static boolean isDevelopment(FacesContext context) - See Also:
- Faces.isDevelopment()
 
 - 
isSystemTestpublic static boolean isSystemTest(FacesContext context) - See Also:
- Faces.isSystemTest()
 
 - 
isProductionpublic static boolean isProduction(FacesContext context) - See Also:
- Faces.isProduction()
 
 - 
getMappingpublic static String getMapping(FacesContext context) - See Also:
- Faces.getMapping()
 
 - 
isPrefixMappingpublic static boolean isPrefixMapping(FacesContext context) - See Also:
- Faces.isPrefixMapping()
 
 - 
evaluateExpressionGetpublic static <T> T evaluateExpressionGet(FacesContext context, String expression) - See Also:
- Faces.evaluateExpressionGet(String)
 
 - 
evaluateExpressionSetpublic static void evaluateExpressionSet(FacesContext context, String expression, Object value) 
 - 
resolveExpressionGetpublic static <T> T resolveExpressionGet(FacesContext context, Object base, String property) 
 - 
resolveExpressionSetpublic static void resolveExpressionSet(FacesContext context, Object base, String property, Object value) 
 - 
getContextAttributepublic static <T> T getContextAttribute(FacesContext context, String name) - See Also:
- Faces.getContextAttribute(String)
 
 - 
getContextAttributepublic static <T> T getContextAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) 
 - 
setContextAttributepublic static void setContextAttribute(FacesContext context, String name, Object value) 
 - 
createConverterpublic static <T> Converter<T> createConverter(FacesContext context, Object identifier) - See Also:
- Faces.createConverter(Object)
 
 - 
createConverterpublic static <T> Converter<T> createConverter(FacesContext context, String identifier) - See Also:
- Faces.createConverter(String)
 
 - 
createConverterpublic static <T> Converter<T> createConverter(FacesContext context, Class<?> identifier) - See Also:
- Faces.createConverter(Class)
 
 - 
createValidatorpublic static <T> Validator<T> createValidator(FacesContext context, Object identifier) - See Also:
- Faces.createValidator(Object)
 
 - 
createValidatorpublic static <T> Validator<T> createValidator(FacesContext context, String identifier) - See Also:
- Faces.createValidator(String)
 
 - 
createValidatorpublic static <T> Validator<T> createValidator(FacesContext context, Class<?> identifier) - See Also:
- Faces.createValidator(Class)
 
 - 
createResourcepublic static Resource createResource(FacesContext context, String resourceName) - See Also:
- Faces.createResource(String)
 
 - 
createResourcepublic static Resource createResource(FacesContext context, String libraryName, String resourceName) - See Also:
- Faces.createResource(String, String)
 
 - 
createResourcepublic static Resource createResource(FacesContext context, ResourceIdentifier resourceIdentifier) - See Also:
- Faces.createResource(ResourceIdentifier)
 
 - 
getLifecyclepublic static Lifecycle getLifecycle(FacesContext context) - See Also:
- Faces.getLifecycle()
 
 - 
setViewRootpublic static void setViewRoot(FacesContext context, String viewId) - See Also:
- Faces.setViewRoot(String)
 
 - 
getViewIdpublic static String getViewId(FacesContext context) - See Also:
- Faces.getViewId()
 
 - 
getViewIdWithParameterspublic static String getViewIdWithParameters(FacesContext context) - See Also:
- Faces.getViewIdWithParameters()
 
 - 
getViewNamepublic static String getViewName(FacesContext context) - See Also:
- Faces.getViewName()
 
 - 
getViewDeclarationLanguagepublic static ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context) - See Also:
- Faces.getViewDeclarationLanguage()
 
 - 
getRenderKitpublic static RenderKit getRenderKit(FacesContext context) - See Also:
- Faces.getRenderKit()
 
 - 
normalizeViewIdpublic static String normalizeViewId(FacesContext context, String path) - See Also:
- Faces.normalizeViewId(String)
 
 - 
getViewParameterspublic static Collection<UIViewParameter> getViewParameters(FacesContext context) - See Also:
- Faces.getViewParameters()
 
 - 
getViewParameterMappublic static Map<String,List<String>> getViewParameterMap(FacesContext context) - See Also:
- Faces.getViewParameterMap()
 
 - 
getHashParameterspublic static Collection<HashParam> getHashParameters(FacesContext context) - See Also:
- Faces.getHashParameters()
 
 - 
getHashParameterMappublic static Map<String,List<String>> getHashParameterMap(FacesContext context) - See Also:
- Faces.getHashParameterMap()
 
 - 
getHashQueryStringpublic static String getHashQueryString(FacesContext context) 
 - 
getScriptParameterspublic static Collection<ScriptParam> getScriptParameters(FacesContext context) - See Also:
- Faces.getScriptParameters()
 
 - 
getMetadataAttributespublic static Map<String,Object> getMetadataAttributes(FacesContext context, String viewId) - See Also:
- Faces.getMetadataAttributes(String)
 
 - 
getMetadataAttributespublic static Map<String,Object> getMetadataAttributes(FacesContext context) - See Also:
- Faces.getMetadataAttributes()
 
 - 
getMetadataAttributepublic static <T> T getMetadataAttribute(FacesContext context, String viewId, String name) 
 - 
getMetadataAttributepublic static <T> T getMetadataAttribute(FacesContext context, String name) - See Also:
- Faces.getMetadataAttribute(String)
 
 - 
getLocalepublic static Locale getLocale(FacesContext context) - See Also:
- Faces.getLocale()
 
 - 
getDefaultLocalepublic static Locale getDefaultLocale(FacesContext context) - See Also:
- Faces.getDefaultLocale()
 
 - 
getSupportedLocalespublic static List<Locale> getSupportedLocales(FacesContext context) - See Also:
- Faces.getSupportedLocales()
 
 - 
setLocalepublic static void setLocale(FacesContext context, Locale locale) - See Also:
- Faces.setLocale(Locale)
 
 - 
getMessageBundlepublic static ResourceBundle getMessageBundle(FacesContext context) - See Also:
- Faces.getMessageBundle()
 
 - 
getResourceBundlepublic static ResourceBundle getResourceBundle(FacesContext context, String var) - See Also:
- Faces.getResourceBundle(String)
 
 - 
getResourceBundlespublic static Map<String,ResourceBundle> getResourceBundles(FacesContext context) - See Also:
- Faces.getResourceBundles()
 
 - 
getBundleStringpublic static String getBundleString(FacesContext context, String key) - See Also:
- Faces.getBundleString(String)
 
 - 
navigatepublic static void navigate(FacesContext context, String outcome) - See Also:
- Faces.navigate(String)
 
 - 
getBookmarkableURLpublic static String getBookmarkableURL(FacesContext context, Map<String,List<String>> params, boolean includeViewParams) - See Also:
- Faces.getBookmarkableURL(Map, boolean)
 
 - 
getBookmarkableURLpublic static String getBookmarkableURL(FacesContext context, String viewId, Map<String,List<String>> params, boolean includeViewParams) 
 - 
getBookmarkableURLpublic static String getBookmarkableURL(FacesContext context, Collection<? extends ParamHolder<?>> params, boolean includeViewParams) 
 - 
getBookmarkableURLpublic static String getBookmarkableURL(FacesContext context, String viewId, Collection<? extends ParamHolder<?>> params, boolean includeViewParams) 
 - 
getFaceletContextpublic static FaceletContext getFaceletContext(FacesContext context) - See Also:
- Faces.getFaceletContext()
 
 - 
getFaceletAttributepublic static <T> T getFaceletAttribute(FacesContext context, String name) - See Also:
- Faces.getFaceletAttribute(String)
 
 - 
setFaceletAttributepublic static void setFaceletAttribute(FacesContext context, String name, Object value) 
 - 
getRequestpublic static HttpServletRequest getRequest(FacesContext context) - See Also:
- Faces.getRequest()
 
 - 
isAjaxRequestpublic static boolean isAjaxRequest(FacesContext context) - See Also:
- Faces.isAjaxRequest()
 
 - 
isAjaxRequestWithPartialRenderingpublic static boolean isAjaxRequestWithPartialRendering(FacesContext context) 
 - 
isPostbackpublic static boolean isPostback(FacesContext context) - See Also:
- Faces.isPostback()
 
 - 
getRequestParameterMappublic static Map<String,String> getRequestParameterMap(FacesContext context) - See Also:
- Faces.getRequestParameterMap()
 
 - 
getMutableRequestParameterMappublic static Map<String,List<String>> getMutableRequestParameterMap(FacesContext context) - See Also:
- Faces.getMutableRequestParameterMap()
 
 - 
getRequestParameterpublic static String getRequestParameter(FacesContext context, String name) - See Also:
- Faces.getRequestParameter(String)
 
 - 
getRequestParameterpublic static <T> T getRequestParameter(FacesContext context, String name, Class<T> type) - See Also:
- Faces.getRequestParameter(String, Class)
 
 - 
getRequestParameterpublic static <T> T getRequestParameter(FacesContext context, String name, Function<String,T> converter) 
 - 
getRequestParameterpublic static <T> T getRequestParameter(FacesContext context, String name, Function<String,T> converter, Supplier<T> defaultValue) 
 - 
getRequestParameterValuesMappublic static Map<String,String[]> getRequestParameterValuesMap(FacesContext context) - See Also:
- Faces.getRequestParameterValuesMap()
 
 - 
getRequestParameterValuespublic static String[] getRequestParameterValues(FacesContext context, String name) - See Also:
- Faces.getRequestParameterValues(String)
 
 - 
getRequestParameterValuespublic static <T> T[] getRequestParameterValues(FacesContext context, String name, Class<T> type) 
 - 
getRequestPartspublic static Collection<Part> getRequestParts(FacesContext context) - See Also:
- Faces.getRequestParts()
 
 - 
getRequestPartpublic static Part getRequestPart(FacesContext context, String name) - See Also:
- Faces.getRequestPart(String)
 
 - 
getRequestPartspublic static Collection<Part> getRequestParts(FacesContext context, String name) - See Also:
- Faces.getRequestParts(String)
 
 - 
getRequestHeaderMappublic static Map<String,String> getRequestHeaderMap(FacesContext context) - See Also:
- Faces.getRequestHeaderMap()
 
 - 
getMutableRequestHeaderMappublic static Map<String,List<String>> getMutableRequestHeaderMap(FacesContext context) - See Also:
- Faces.getMutableRequestHeaderMap()
 
 - 
getRequestHeaderpublic static String getRequestHeader(FacesContext context, String name) - See Also:
- Faces.getRequestHeader(String)
 
 - 
getRequestHeaderValuesMappublic static Map<String,String[]> getRequestHeaderValuesMap(FacesContext context) - See Also:
- Faces.getRequestHeaderValuesMap()
 
 - 
getRequestHeaderValuespublic static String[] getRequestHeaderValues(FacesContext context, String name) - See Also:
- Faces.getRequestHeaderValues(String)
 
 - 
getRequestContextPathpublic static String getRequestContextPath(FacesContext context) - See Also:
- Faces.getRequestContextPath()
 
 - 
getRequestServletPathpublic static String getRequestServletPath(FacesContext context) - See Also:
- Faces.getRequestServletPath()
 
 - 
getRequestPathInfopublic static String getRequestPathInfo(FacesContext context) - See Also:
- Faces.getRequestPathInfo()
 
 - 
getRequestHostnamepublic static String getRequestHostname(FacesContext context) - See Also:
- Faces.getRequestHostname()
 
 - 
getRequestBaseURLpublic static String getRequestBaseURL(FacesContext context) - See Also:
- Faces.getRequestBaseURL()
 
 - 
getRequestDomainURLpublic static String getRequestDomainURL(FacesContext context) - See Also:
- Faces.getRequestDomainURL()
 
 - 
getRequestURLpublic static String getRequestURL(FacesContext context) - See Also:
- Faces.getRequestURL()
 
 - 
getRequestURIpublic static String getRequestURI(FacesContext context) - See Also:
- Faces.getRequestURI()
 
 - 
getRequestQueryStringpublic static String getRequestQueryString(FacesContext context) - See Also:
- Faces.getRequestQueryString()
 
 - 
getRequestQueryStringMappublic static Map<String,List<String>> getRequestQueryStringMap(FacesContext context) - See Also:
- Faces.getRequestQueryStringMap()
 
 - 
getRequestURLWithQueryStringpublic static String getRequestURLWithQueryString(FacesContext context) - See Also:
- Faces.getRequestURLWithQueryString()
 
 - 
getRequestURIWithQueryStringpublic static String getRequestURIWithQueryString(FacesContext context) - See Also:
- Faces.getRequestURIWithQueryString()
 
 - 
getRemoteAddrpublic static String getRemoteAddr(FacesContext context) - See Also:
- Faces.getRemoteAddr()
 
 - 
getUserAgentpublic static String getUserAgent(FacesContext context) - See Also:
- Faces.getUserAgent()
 
 - 
getReferrerpublic static String getReferrer(FacesContext context) - See Also:
- Faces.getReferrer()
 
 - 
isRequestSecurepublic static boolean isRequestSecure(FacesContext context) - See Also:
- Faces.isRequestSecure()
 
 - 
getResponsepublic static HttpServletResponse getResponse(FacesContext context) - See Also:
- Faces.getResponse()
 
 - 
getResponseBufferSizepublic static int getResponseBufferSize(FacesContext context) - See Also:
- Faces.getResponseBufferSize()
 
 - 
getResponseCharacterEncodingpublic static String getResponseCharacterEncoding(FacesContext context) - See Also:
- Faces.getResponseCharacterEncoding()
 
 - 
setResponseStatuspublic static void setResponseStatus(FacesContext context, int status) - See Also:
- Faces.setResponseStatus(int)
 
 - 
redirectpublic static void redirect(FacesContext context, String url, Object... paramValues) - See Also:
- Faces.redirect(String, Object...)
 
 - 
redirectPermanentpublic static void redirectPermanent(FacesContext context, String url, Object... paramValues) 
 - 
refreshpublic static void refresh(FacesContext context) - See Also:
- Faces.refresh()
 
 - 
refreshWithQueryStringpublic static void refreshWithQueryString(FacesContext context) - See Also:
- Faces.refreshWithQueryString()
 
 - 
responseSendErrorpublic static void responseSendError(FacesContext context, int status, String message) - See Also:
- Faces.responseSendError(int, String)
 
 - 
addResponseHeaderpublic static void addResponseHeader(FacesContext context, String name, String value) - See Also:
- Faces.addResponseHeader(String, String)
 
 - 
isResponseCommittedpublic static boolean isResponseCommitted(FacesContext context) - See Also:
- Faces.isResponseCommitted()
 
 - 
responseResetpublic static void responseReset(FacesContext context) - See Also:
- Faces.responseReset()
 
 - 
isRenderResponsepublic static boolean isRenderResponse(FacesContext context) - See Also:
- Faces.isRenderResponse()
 
 - 
loginpublic static void login(FacesContext context, String username, String password) throws ServletException - Throws:
- ServletException
- See Also:
- Faces.login(String, String)
 
 - 
authenticatepublic static boolean authenticate(FacesContext context) throws ServletException - Throws:
- ServletException
- See Also:
- Faces.authenticate()
 
 - 
logoutpublic static void logout(FacesContext context) throws ServletException - Throws:
- ServletException
- See Also:
- Faces.logout()
 
 - 
getRemoteUserpublic static String getRemoteUser(FacesContext context) - See Also:
- Faces.getRemoteUser()
 
 - 
isUserInRolepublic static boolean isUserInRole(FacesContext context, String role) - See Also:
- Faces.isUserInRole(String)
 
 - 
getRequestCookiepublic static String getRequestCookie(FacesContext context, String name) - See Also:
- Faces.getRequestCookie(String)
 
 - 
addResponseCookiepublic static void addResponseCookie(FacesContext context, String name, String value, int maxAge) 
 - 
addResponseCookiepublic static void addResponseCookie(FacesContext context, String name, String value, String path, int maxAge) 
 - 
addResponseCookiepublic static void addResponseCookie(FacesContext context, String name, String value, String domain, String path, int maxAge) 
 - 
addResponseCookiepublic static void addResponseCookie(FacesContext context, String name, String value, String domain, String path, int maxAge, boolean httpOnly) 
 - 
addResponseCookiepublic static void addResponseCookie(FacesContext context, String name, String value, String domain, String path, int maxAge, boolean httpOnly, Map<String,String> attributes) 
 - 
removeResponseCookiepublic static void removeResponseCookie(FacesContext context, String name, String path) 
 - 
getSessionpublic static HttpSession getSession(FacesContext context) - See Also:
- Faces.getSession()
 
 - 
getSessionpublic static HttpSession getSession(FacesContext context, boolean create) - See Also:
- Faces.getSession(boolean)
 
 - 
getSessionIdpublic static String getSessionId(FacesContext context) - See Also:
- Faces.getSessionId()
 
 - 
invalidateSessionpublic static void invalidateSession(FacesContext context) - See Also:
- Faces.invalidateSession()
 
 - 
hasSessionpublic static boolean hasSession(FacesContext context) - See Also:
- Faces.hasSession()
 
 - 
isSessionNewpublic static boolean isSessionNew(FacesContext context) - See Also:
- Faces.isSessionNew()
 
 - 
isRequestedSessionExpiredpublic static boolean isRequestedSessionExpired(FacesContext context) - See Also:
- Faces.isRequestedSessionExpired()
 
 - 
getSessionCreationTimepublic static long getSessionCreationTime(FacesContext context) - See Also:
- Faces.getSessionCreationTime()
 
 - 
getSessionLastAccessedTimepublic static long getSessionLastAccessedTime(FacesContext context) - See Also:
- Faces.getSessionLastAccessedTime()
 
 - 
getSessionMaxInactiveIntervalpublic static int getSessionMaxInactiveInterval(FacesContext context) - See Also:
- Faces.getSessionMaxInactiveInterval()
 
 - 
setSessionMaxInactiveIntervalpublic static void setSessionMaxInactiveInterval(FacesContext context, int seconds) - See Also:
- Faces.setSessionMaxInactiveInterval(int)
 
 - 
hasSessionTimedOutpublic static boolean hasSessionTimedOut(FacesContext context) - See Also:
- Faces.hasSessionTimedOut()
 
 - 
getServletContextpublic static ServletContext getServletContext(FacesContext context) - See Also:
- Faces.getServletContext()
 
 - 
getInitParameterMappublic static Map<String,String> getInitParameterMap(FacesContext context) - See Also:
- Faces.getInitParameterMap()
 
 - 
getInitParameterpublic static String getInitParameter(FacesContext context, String name) - See Also:
- Faces.getInitParameter(String)
 
 - 
getInitParameterOrDefaultpublic static String getInitParameterOrDefault(FacesContext context, String name, String defaultValue) 
 - 
getMimeTypepublic static String getMimeType(FacesContext context, String name) - See Also:
- Faces.getMimeType(String)
 
 - 
getResourcepublic static URL getResource(FacesContext context, String path) throws MalformedURLException - Throws:
- MalformedURLException
- See Also:
- Faces.getResource(String)
 
 - 
getResourceAsStreampublic static InputStream getResourceAsStream(FacesContext context, String path) - See Also:
- Faces.getResourceAsStream(String)
 
 - 
getResourcePathspublic static Set<String> getResourcePaths(FacesContext context, String path) - See Also:
- Faces.getResourcePaths(String)
 
 - 
getRealPathpublic static String getRealPath(FacesContext context, String webContentPath) - See Also:
- Faces.getRealPath(String)
 
 - 
getRequestMappublic static Map<String,Object> getRequestMap(FacesContext context) - See Also:
- Faces.getRequestMap()
 
 - 
getRequestAttributepublic static <T> T getRequestAttribute(FacesContext context, String name) - See Also:
- Faces.getRequestAttribute(String)
 
 - 
getRequestAttributepublic static <T> T getRequestAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) 
 - 
setRequestAttributepublic static void setRequestAttribute(FacesContext context, String name, Object value) 
 - 
removeRequestAttributepublic static <T> T removeRequestAttribute(FacesContext context, String name) - See Also:
- Faces.removeRequestAttribute(String)
 
 - 
getFlashpublic static Flash getFlash(FacesContext context) - See Also:
- Faces.getFlash()
 
 - 
getFlashAttributepublic static <T> T getFlashAttribute(FacesContext context, String name) - See Also:
- Faces.getFlashAttribute(String)
 
 - 
getFlashAttributepublic static <T> T getFlashAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) 
 - 
setFlashAttributepublic static void setFlashAttribute(FacesContext context, String name, Object value) - See Also:
- Faces.setFlashAttribute(String, Object)
 
 - 
removeFlashAttributepublic static <T> T removeFlashAttribute(FacesContext context, String name) - See Also:
- Faces.removeFlashAttribute(String)
 
 - 
getViewMappublic static Map<String,Object> getViewMap(FacesContext context) - See Also:
- Faces.getViewMap()
 
 - 
getViewAttributepublic static <T> T getViewAttribute(FacesContext context, String name) - See Also:
- Faces.getViewAttribute(String)
 
 - 
getViewAttributepublic static <T> T getViewAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) - See Also:
- Faces.getViewAttribute(String, Supplier)
 
 - 
setViewAttributepublic static void setViewAttribute(FacesContext context, String name, Object value) - See Also:
- Faces.setViewAttribute(String, Object)
 
 - 
removeViewAttributepublic static <T> T removeViewAttribute(FacesContext context, String name) - See Also:
- Faces.removeViewAttribute(String)
 
 - 
getSessionMappublic static Map<String,Object> getSessionMap(FacesContext context) - See Also:
- Faces.getSessionMap()
 
 - 
getSessionAttributepublic static <T> T getSessionAttribute(FacesContext context, String name) - See Also:
- Faces.getSessionAttribute(String)
 
 - 
getSessionAttributepublic static <T> T getSessionAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) 
 - 
setSessionAttributepublic static void setSessionAttribute(FacesContext context, String name, Object value) 
 - 
removeSessionAttributepublic static <T> T removeSessionAttribute(FacesContext context, String name) - See Also:
- Faces.removeSessionAttribute(String)
 
 - 
getApplicationMappublic static Map<String,Object> getApplicationMap(FacesContext context) - See Also:
- Faces.getApplicationMap()
 
 - 
getApplicationAttributepublic static <T> T getApplicationAttribute(FacesContext context, String name) - See Also:
- Faces.getApplicationAttribute(String)
 
 - 
getApplicationAttributepublic static <T> T getApplicationAttribute(FacesContext context, String name, Supplier<T> computeIfAbsent) 
 - 
setApplicationAttributepublic static void setApplicationAttribute(FacesContext context, String name, Object value) 
 - 
removeApplicationAttributepublic static <T> T removeApplicationAttribute(FacesContext context, String name) - See Also:
- Faces.removeApplicationAttribute(String)
 
 - 
sendFilepublic static void sendFile(FacesContext context, File file, boolean attachment) throws IOException - Throws:
- IOException
- See Also:
- Faces.sendFile(File, boolean)
 
 - 
sendFilepublic static void sendFile(FacesContext context, File file, String filename, boolean attachment) throws IOException - Throws:
- IOException
- See Also:
- Faces.sendFile(File, String, boolean)
 
 - 
sendFilepublic static void sendFile(FacesContext context, Path path, boolean attachment) throws IOException - Throws:
- IOException
- See Also:
- Faces.sendFile(Path, boolean)
 
 - 
sendFilepublic static void sendFile(FacesContext context, Path path, String filename, boolean attachment) throws IOException - Throws:
- IOException
- See Also:
- Faces.sendFile(Path, String, boolean)
 
 - 
sendFilepublic static void sendFile(FacesContext context, byte[] content, String filename, boolean attachment) - See Also:
- Faces.sendFile(byte[], String, boolean)
 
 - 
sendFilepublic static void sendFile(FacesContext context, InputStream content, String filename, boolean attachment) 
 - 
sendFilepublic static void sendFile(FacesContext context, String filename, boolean attachment, Callback.Output outputCallback) 
 
- 
 
-