protected String getLocalePrefixForLocateResource() { return getLocalePrefixForLocateResource(FacesContext.getCurrentInstance()); }
public Stream<java.lang.String> getViewResources(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) { final String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts(); String contractPreferred = getContractNameForLocateResource(facesContext); if (this._viewSuffixes == null) { this._viewSuffixes = loadSuffixes(facesContext.getExternalContext()); } Iterator it = new FilterInvalidSuffixViewResourceIterator(new ViewResourceIterator(facesContext, getResourceHandlerSupport(), localePrefix, contracts, contractPreferred, path, maxDepth, options), facesContext, _viewSuffixes); return StreamSupport.stream(Spliterators.spliteratorUnknownSize(it,Spliterator.DISTINCT), false); }
public boolean libraryExists(String libraryName) String localePrefix = getLocalePrefixForLocateResource();
public boolean libraryExists(String libraryName) String localePrefix = getLocalePrefixForLocateResource();
String resourceName, String libraryName) String localePrefix = getLocalePrefixForLocateResource(); String resourceVersion = null; String libraryVersion = null;
final String localePrefix = getLocalePrefixForLocateResource();
String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts();
final String localePrefix = getLocalePrefixForLocateResource(facesContext); final List<String> contracts = facesContext.getResourceLibraryContracts(); String contractPreferred = getContractNameForLocateResource(facesContext);
final String localePrefix = getLocalePrefixForLocateResource(facesContext); String contentType = facesContext.getExternalContext().getMimeType(resourceName); final List<String> contracts = facesContext.getResourceLibraryContracts();