public void overrideContextInitParameter(WebContextInitParameter param, String value) { if (param == null || value == null || value.length() == 0) { return; } value = value.trim(); String oldVal = contextParameters.put(param, value); cachedListParams.remove(param); if (oldVal != null && LOGGER.isLoggable(FINE) && !(oldVal.equals(value))) { LOGGER.log(FINE, "Overriding init parameter {0}. Changing from {1} to {2}.", new Object[]{param.getQualifiedName(), oldVal, value}); } }
public void overrideContextInitParameter(WebContextInitParameter param, String value) { if (param == null || value == null || value.length() == 0) { return; } value = value.trim(); String oldVal = contextParameters.put(param, value); cachedListParams.remove(param); if (oldVal != null && LOGGER.isLoggable(FINE) && !(oldVal.equals(value))) { LOGGER.log(FINE, "Overriding init parameter {0}. Changing from {1} to {2}.", new Object[]{param.getQualifiedName(), oldVal, value}); } }
public void overrideContextInitParameter(WebContextInitParameter param, String value) { if (param == null || value == null || value.length() == 0) { return; } value = value.trim(); String oldVal = contextParameters.put(param, value); cachedListParams.remove(param); if (oldVal != null && LOGGER.isLoggable(Level.FINE) && !(oldVal.equals(value))) { LOGGER.log(Level.FINE, "Overriding init parameter {0}. Changing from {1} to {2}.", new Object[]{param.getQualifiedName(), oldVal, value}); } }
@Override public Collection<URI> getResources(ServletContext context) { WebConfiguration webConfig = WebConfiguration.getInstance(context); String paths = webConfig.getOptionValue(getParameter()); Set<URI> urls = new LinkedHashSet<>(6); if (paths != null) { for (String token : split(context, paths.trim(), getSeparatorRegex())) { String path = token.trim(); if (!isExcluded(path) && path.length() != 0) { URI u = getContextURLForPath(context, path); if (u != null) { urls.add(u); } else { if (LOGGER.isLoggable(WARNING)) { LOGGER.log(WARNING, "jsf.config.web_resource_not_found", new Object[] { path, JavaxFacesConfigFiles.getQualifiedName() }); } } } } } return urls; }
@Override public Collection<URI> getResources(ServletContext context) { WebConfiguration webConfig = WebConfiguration.getInstance(context); String paths = webConfig.getOptionValue(getParameter()); Set<URI> urls = new LinkedHashSet<>(6); if (paths != null) { for (String token : split(context, paths.trim(), getSeparatorRegex())) { String path = token.trim(); if (!isExcluded(path) && path.length() != 0) { URI u = getContextURLForPath(context, path); if (u != null) { urls.add(u); } else { if (LOGGER.isLoggable(WARNING)) { LOGGER.log(WARNING, "jsf.config.web_resource_not_found", new Object[] { path, JavaxFacesConfigFiles.getQualifiedName() }); } } } } } return urls; }
public Collection<URI> getResources(ServletContext context) { WebConfiguration webConfig = WebConfiguration.getInstance(context); String paths = webConfig.getOptionValue(getParameter()); Set<URI> urls = new LinkedHashSet<URI>(6); if (paths != null) { for (String token : Util.split(context, paths.trim(), getSeparatorRegex())) { String path = token.trim(); if (!isExcluded(path) && path.length() != 0) { URI u = getContextURLForPath(context, path); if (u != null) { urls.add(u); } else { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "jsf.config.web_resource_not_found", new Object[] { path, JavaxFacesConfigFiles.getQualifiedName() }); } } } } } return urls; }
private ByteBuffer allocateByteBuffer() { int size; try { size = Integer.parseInt(webconfig.getOptionValue(ResourceBufferSize)); } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(Level.WARNING)) { LOGGER.log(Level.WARNING, "jsf.application.resource.invalid_resource_buffer_size", new Object[] { webconfig.getOptionValue(ResourceBufferSize), ResourceBufferSize.getQualifiedName(), ResourceBufferSize.getDefaultValue() }); } size = Integer.parseInt(ResourceBufferSize.getDefaultValue()); } return ByteBuffer.allocate(size); } }
private ByteBuffer allocateByteBuffer() { int size; try { size = Integer.parseInt(webconfig.getOptionValue(ResourceBufferSize)); } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(WARNING)) { LOGGER.log(WARNING, "jsf.application.resource.invalid_resource_buffer_size", new Object[] { webconfig.getOptionValue(ResourceBufferSize), ResourceBufferSize.getQualifiedName(), ResourceBufferSize.getDefaultValue() }); } size = Integer.parseInt(ResourceBufferSize.getDefaultValue()); } return ByteBuffer.allocate(size); }
private void enableClientWindowModeIfNecessary(FacesContext context) { WebConfiguration config = WebConfiguration.getInstance(context.getExternalContext()); String optionValue = config.getOptionValue(WebConfiguration.WebContextInitParameter.ClientWindowMode); boolean clientWindowNeedsEnabling = false; if ("none".equals(optionValue)) { clientWindowNeedsEnabling = true; String featureName = WebConfiguration.WebContextInitParameter.ClientWindowMode.getQualifiedName(); LOGGER.log(Level.WARNING, "{0} was set to none, but Faces Flows requires {0} is enabled. Setting to ''url''.", new Object[]{featureName}); } else if (null == optionValue) { clientWindowNeedsEnabling = true; } if (clientWindowNeedsEnabling) { config.setOptionValue(WebConfiguration.WebContextInitParameter.ClientWindowMode, "url"); } } }
private void enableClientWindowModeIfNecessary(FacesContext context) { WebConfiguration config = WebConfiguration.getInstance(context.getExternalContext()); String optionValue = config.getOptionValue(ClientWindowMode); boolean clientWindowNeedsEnabling = false; if ("none".equals(optionValue)) { clientWindowNeedsEnabling = true; LOGGER.log(WARNING, "{0} was set to none, but Faces Flows requires {0} is enabled. Setting to ''url''.", new Object[] { ClientWindowMode.getQualifiedName() }); } else if (optionValue == null) { clientWindowNeedsEnabling = true; } if (clientWindowNeedsEnabling) { config.setOptionValue(ClientWindowMode, "url"); } } }
private ByteBuffer allocateByteBuffer() { int size; try { size = Integer.parseInt(webconfig.getOptionValue(ResourceBufferSize)); } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(WARNING)) { LOGGER.log(WARNING, "jsf.application.resource.invalid_resource_buffer_size", new Object[] { webconfig.getOptionValue(ResourceBufferSize), ResourceBufferSize.getQualifiedName(), ResourceBufferSize.getDefaultValue() }); } size = Integer.parseInt(ResourceBufferSize.getDefaultValue()); } return ByteBuffer.allocate(size); }
private ByteBuffer allocateByteBuffer() { int size; try { size = Integer.parseInt(webconfig.getOptionValue(ResourceBufferSize)); } catch (NumberFormatException nfe) { if (LOGGER.isLoggable(WARNING)) { LOGGER.log(WARNING, "jsf.application.resource.invalid_resource_buffer_size", new Object[] { webconfig.getOptionValue(ResourceBufferSize), ResourceBufferSize.getQualifiedName(), ResourceBufferSize.getDefaultValue() }); } size = Integer.parseInt(ResourceBufferSize.getDefaultValue()); } return ByteBuffer.allocate(size); }
private void enableClientWindowModeIfNecessary(FacesContext context) { WebConfiguration config = WebConfiguration.getInstance(context.getExternalContext()); String optionValue = config.getOptionValue(ClientWindowMode); boolean clientWindowNeedsEnabling = false; if ("none".equals(optionValue)) { clientWindowNeedsEnabling = true; LOGGER.log(WARNING, "{0} was set to none, but Faces Flows requires {0} is enabled. Setting to ''url''.", new Object[] { ClientWindowMode.getQualifiedName() }); } else if (optionValue == null) { clientWindowNeedsEnabling = true; } if (clientWindowNeedsEnabling) { config.setOptionValue(ClientWindowMode, "url"); } } }
private void enableClientWindowModeIfNecessary(FacesContext context) { WebConfiguration config = WebConfiguration.getInstance(context.getExternalContext()); String optionValue = config.getOptionValue(ClientWindowMode); boolean clientWindowNeedsEnabling = false; if ("none".equals(optionValue)) { clientWindowNeedsEnabling = true; LOGGER.log(WARNING, "{0} was set to none, but Faces Flows requires {0} is enabled. Setting to ''url''.", new Object[] { ClientWindowMode.getQualifiedName() }); } else if (optionValue == null) { clientWindowNeedsEnabling = true; } if (clientWindowNeedsEnabling) { config.setOptionValue(ClientWindowMode, "url"); } } }
public void overrideContextInitParameter(WebContextInitParameter param, String value) { if (param == null || value == null || value.length() == 0) { return; } value = value.trim(); String oldVal = contextParameters.put(param, value); cachedListParams.remove(param); if (oldVal != null && LOGGER.isLoggable(FINE) && !(oldVal.equals(value))) { LOGGER.log(FINE, "Overriding init parameter {0}. Changing from {1} to {2}.", new Object[]{param.getQualifiedName(), oldVal, value}); } }
/** * @param param the init parameter of interest * @return <code>true</code> if the parameter was explicitly set, * otherwise, <code>false</code> */ public boolean isSet(WebContextInitParameter param) { return isSet(param.getQualifiedName()); }
/** * @param param the init parameter of interest * @return <code>true</code> if the parameter was explicitly set, * otherwise, <code>false</code> */ public boolean isSet(WebContextInitParameter param) { return isSet(param.getQualifiedName()); }
/** * @param param the init parameter of interest * @return <code>true</code> if the parameter was explicitly set, * otherwise, <code>false</code> */ public boolean isSet(WebContextInitParameter param) { return isSet(param.getQualifiedName()); }
/** * @param param the init parameter of interest * @return <code>true</code> if the parameter was explicitly set, * otherwise, <code>false</code> */ public boolean isSet(WebContextInitParameter param) { return isSet(param.getQualifiedName()); }
/** * @param param the init parameter of interest * @return <code>true</code> if the parameter was explicitly set, * otherwise, <code>false</code> */ public boolean isSet(WebContextInitParameter param) { return isSet(param.getQualifiedName()); }