/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
/** * Get the monitoring probes array (direct). * * @return the monitoring probes array (direct). */ public final E[] getProbesUnsafe() { return monitoringProbes.getArray(); }
/** * Get the monitoring probes array (direct). * * @return the monitoring probes array (direct). */ public final E[] getProbesUnsafe() { return monitoringProbes.getArray(); }
/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
/** * Get the monitoring probes array (direct). * * @return the monitoring probes array (direct). */ public final E[] getProbesUnsafe() { return monitoringProbes.getArray(); }
/** * Get the monitoring probes array (direct). * * @return the monitoring probes array (direct). */ public final E[] getProbesUnsafe() { return monitoringProbes.getArray(); }
/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
/** * Get the monitoring probes array (direct). * * @return the monitoring probes array (direct). */ public final E[] getProbesUnsafe() { return monitoringProbes.getArray(); }
/** * Return the default directory from where files will be serviced. * @return the default directory from where file will be serviced. */ @SuppressWarnings("UnusedDeclaration") public File getDefaultDocRoot() { final File[] array = docRoots.getArray(); return (array != null && array.length > 0) ? array[0] : null; }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("ServletRegistration"); sb.append("{ servletName=").append(name); sb.append(", servletClass=").append(className); sb.append(", urlPatterns=").append(Arrays.toString(urlPatterns.getArray())); sb.append(", loadOnStartup=").append(loadOnStartup); sb.append(", isAsyncSupported=").append(isAsyncSupported); sb.append(" }"); return sb.toString(); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("ServletRegistration"); sb.append("{ servletName=").append(name); sb.append(", servletClass=").append(className); sb.append(", urlPatterns=").append(Arrays.toString(urlPatterns.getArray())); sb.append(", loadOnStartup=").append(loadOnStartup); sb.append(", isAsyncSupported=").append(isAsyncSupported); sb.append(" }"); return sb.toString(); }
private ContentEncoding lookupContentEncoding(final DataChunk bc, final int startIdx, final int endIdx) { final ContentEncoding[] encodings = contentEncodings.getArray(); if (encodings != null) { for (ContentEncoding encoding : encodings) { if (lookupAlias(encoding, bc, startIdx)) { return encoding; } } } return null; }
private ContentEncoding lookupContentEncoding(final DataChunk bc, final int startIdx, final int endIdx) { final ContentEncoding[] encodings = contentEncodings.getArray(); if (encodings != null) { for (ContentEncoding encoding : encodings) { if (lookupAlias(encoding, bc, startIdx)) { return encoding; } } } return null; }
private ContentEncoding lookupContentEncoding(final DataChunk bc, final int startIdx, final int endIdx) { final ContentEncoding[] encodings = contentEncodings.getArray(); if (encodings != null) { for (ContentEncoding encoding : encodings) { if (lookupAlias(encoding, bc, startIdx)) { return encoding; } } } return null; }
private ContentEncoding lookupContentEncoding(final DataChunk bc, final int startIdx, final int endIdx) { final ContentEncoding[] encodings = contentEncodings.getArray(); if (encodings != null) { for (ContentEncoding encoding : encodings) { if (lookupAlias(encoding, bc, startIdx)) { return encoding; } } } return null; }
/** * Returns <tt>true</tt> if the resource with the given content-type * could be compressed, or <tt>false</tt> otherwise. */ public boolean checkMimeType(final String contentType) { return (compressibleMimeTypes.isEmpty() || indexOfStartsWith(compressibleMimeTypes.getArray(), contentType) != -1); }
/** * Returns <tt>true</tt> if the resource with the given content-type * could be compressed, or <tt>false</tt> otherwise. */ public boolean checkMimeType(final String contentType) { return (compressibleMimeTypes.isEmpty() || indexOfStartsWith(compressibleMimeTypes.getArray(), contentType) != -1); }
/** * Returns <tt>true</tt> if the resource with the given content-type * could be compressed, or <tt>false</tt> otherwise. */ public boolean checkMimeType(final String contentType) { return (compressibleMimeTypes.isEmpty() || indexOfStartsWith(compressibleMimeTypes.getArray(), contentType) != -1); }