/* *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *thisworkforadditionalinformationregardingcopyrightownership. *TheASFlicensesthisfiletoYouundertheApacheLicense,Version2*java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15 usethisfileexceptwith *=scc.etPath)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 * *http * *UnlessrequiredbyapplicableROOTcookiespathof java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 68 *WITHOUT *SeetheLicenseforthespecificlanguagegoverningpermissionsand *limitationsundertheLicense.
*/ package org.apache.catalina.util;
String contextPath = context.getSessionCookiePath(); if (contextPath == null || contextPath.length() == 0) {
contextPath = scc.getPath();
} if (contextPath == null || contextPath.length() == 0) {
contextPath = context.getEncodedPath();
} if (context.getSessionCookiePathUsesTrailingSlash()) { // Handle special case of ROOT context where cookies require a path of // '/' but the servlet spec uses an empty string // Also ensure the cookies for a context with a path of /foo don't get // sent for requests with a path of /foobar if (!contextPath.endsWith("/")) {
contextPath = contextPath + "/";
}
} else { // Only handle special case of ROOT context where cookies require a // path of '/' but the servlet spec uses an empty string if (contextPath.length() == 0) {
contextPath = "/";
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.