Refine search
@Override public boolean matches(SNIServerName serverName) if (LOG.isDebugEnabled()) LOG.debug("SNI matching for {}", serverName); host = StringUtil.asciiToLowerCase(host); if (LOG.isDebugEnabled()) LOG.debug("SNI matched {}->{}", host, _x509);
throw new IllegalStateException("No config path set"); if (LOG.isDebugEnabled()) LOG.debug("Loading {} from {}", this, _configPath); roleArray = StringUtil.csvSplit(roles); known.add(username); Credential credential = Credential.getCredential(credentials); if (LOG.isDebugEnabled()) LOG.debug("Loaded " + this + " from " + _configPath);
LOG.debug("jsecuritycheck {} {}",username,user); HttpSession session = request.getSession(false); if (user!=null) LOG.debug("authenticated {}->{}",form_auth,nuri); if (LOG.isDebugEnabled()) LOG.debug("Form authentication FAILED for " + StringUtil.printable(username)); if (_formErrorPage == null)
if(LOG.isDebugEnabled()) LOG.debug("addJar - {}", fn); String fnlc=fn.getName().toLowerCase(Locale.ENGLISH); jar=StringUtil.replace(jar, ",", "%2C"); jar=StringUtil.replace(jar, ";", "%3B"); addClassPath(jar); LOG.warn(Log.EXCEPTION,ex);
/** * @see org.osgi.util.tracker.BundleTracker#addingBundle(org.osgi.framework.Bundle, org.osgi.framework.BundleEvent) */ @Override public Object addingBundle(Bundle bundle, BundleEvent event) { try { String serverName = (String)bundle.getHeaders().get(OSGiServerConstants.MANAGED_JETTY_SERVER_NAME); if ((StringUtil.isBlank(serverName) && _managedServerName.equals(OSGiServerConstants.MANAGED_JETTY_SERVER_DEFAULT_NAME)) || (!StringUtil.isBlank(serverName) && (serverName.equals(_managedServerName)))) { if (bundleAdded (bundle)) return bundle; } } catch (Exception e) { LOG.warn(e); } return null; }
/** * @param w the source WebAppContext * @param extraXML any extra xml snippet to append * @param originAttribute param value to use for the context param origin attribute * @param generateOrigin <code>true</code> to generate the origin attribute */ public QuickStartDescriptorGenerator (WebAppContext w, String extraXML, String originAttribute, boolean generateOrigin) { _webApp = w; _extraXML = extraXML; _originAttribute = (StringUtil.isBlank(originAttribute)?DEFAULT_ORIGIN_ATTRIBUTE_NAME:originAttribute); _generateOrigin = generateOrigin || LOG.isDebugEnabled(); _count = 0; }
Charset charset = Charset.forName(context.getProperty(CHARSET).evaluateAttributeExpressions(flowFile).getValue()); if (StringUtil.isBlank(logPrefix)) { dashedLine = StringUtils.repeat('-', 50); } else {
public void decodeQueryTo(MultiMap parameters, String encoding) throws UnsupportedEncodingException { if (_query==_fragment) return; if (encoding==null || StringUtil.isUTF8(encoding)) UrlEncoded.decodeUtf8To(_raw,_query+1,_fragment-_query-1,parameters); else UrlEncoded.decodeTo(StringUtil.toString(_raw,_query+1,_fragment-_query-1,encoding),parameters,encoding); }
protected void addName(String cn) { cn=StringUtil.asciiToLowerCase(cn); if (cn.startsWith("*.")) _wilds.add(cn.substring(2)); else _hosts.add(cn); }
/** * Parse a CSV string using {@link #csvSplit(List,String, int, int)} * @param s The string to parse * @return An array of parsed values. */ public static String[] csvSplit(String s) { if (s==null) return null; return csvSplit(s,0,s.length()); }
public static void setJettyVersion(String serverVersion) { SEND[SEND_SERVER] = StringUtil.getBytes("Server: " + serverVersion + "\015\012"); SEND[SEND_XPOWEREDBY] = StringUtil.getBytes("X-Powered-By: " + serverVersion + "\015\012"); SEND[SEND_SERVER | SEND_XPOWEREDBY] = StringUtil.getBytes("Server: " + serverVersion + "\015\012X-Powered-By: " + serverVersion + "\015\012"); }
buf.append(','); buf.append(' '); StringUtil.append2digits(buf, day_of_month); StringUtil.append2digits(buf, year/100); StringUtil.append2digits(buf, year%100); StringUtil.append2digits(buf, hours); buf.append(':'); StringUtil.append2digits(buf, minutes); buf.append(':'); StringUtil.append2digits(buf, seconds); buf.append(" GMT");
@Override public boolean isProtectedTarget(String target) { // Fixes PAXWEB-196 and PAXWEB-211 //CHECKSTYLE:OFF while (target.startsWith("//")) { target = URIUtil.compactPath(target); } //CHECKSTYLE:ON return StringUtil.startsWithIgnoreCase(target, "/web-inf") || StringUtil.startsWithIgnoreCase(target, "/meta-inf") || StringUtil.startsWithIgnoreCase(target, "/osgi-inf") || StringUtil.startsWithIgnoreCase(target, "/osgi-opt"); }
private byte[] asByteBuffer() { if ((statusCode == StatusCode.NO_CLOSE) || (statusCode == StatusCode.NO_CODE) || (statusCode == (-1))) { // codes that are not allowed to be used in endpoint. return null; } int len = 2; // status code byte utf[] = null; if (StringUtil.isNotBlank(reason)) { utf = StringUtil.getUtf8Bytes(reason); len += utf.length; } byte buf[] = new byte[len]; buf[0] = (byte)((statusCode >>> 8) & 0xFF); buf[1] = (byte)((statusCode >>> 0) & 0xFF); if (utf != null) { System.arraycopy(utf,0,buf,2,utf.length); } return buf; }
public String getNamespace() { if (StringUtil.isNotBlank(namespace)) { return namespace; } return DEFAULT_RESOURCE_NAMESAPCE; }
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException { if (_inputState != __NONE) return; _characterEncoding = encoding; // check encoding is supported if (!StringUtil.isUTF8(encoding)) // noinspection ResultOfMethodCallIgnored "".getBytes(encoding); }
if (LOG.isDebugEnabled()) LOG.debug("Form authentication FAILED for " + StringUtil.printable(username)); if (_formErrorPage == null)