}
- private String getMessage(final int message){
- if (org.apache.coyote.Constants.IS_SECURITY_ENABLED){
- return AccessController.doPrivileged(
- new PrivilegedAction<String>(){
- public String run(){
- return HttpMessages.getMessage(message);
- }
- }
- );
- } else {
- return HttpMessages.getMessage(message);
- }
- }
-
/**
* Send a header.
*
*/
package org.apache.jasper.el;
-import javax.el.ELContext;
import javax.el.ExpressionFactory;
import javax.el.ValueExpression;
import javax.servlet.jsp.el.ELException;
}
}
-
- private void generateNameVirtualHost( PrintWriter mod_jk, String ip ) {
- if( !NamedVirtualHosts.containsKey(ip) ) {
- mod_jk.println("NameVirtualHost " + ip + "");
- NamedVirtualHosts.put(ip,ip);
- }
- }
-
// -------------------- Apache serves static mode --------------------
// This is not going to work for all apps. We fall back to stupid mode.
return docBase;
}
- private String getVirtualHostAddress(String vhost, String vhostip) {
- if( vhostip == null ) {
- if ( vhost != null && vhost.length() > 0 && Character.isDigit(vhost.charAt(0)) )
- vhostip=vhost;
- else
- vhostip="*";
- }
- return vhostip;
- }
-
}
*/
public final class UDecoder {
- private static org.apache.juli.logging.Log log=
- org.apache.juli.logging.LogFactory.getLog(UDecoder.class );
-
protected static final boolean ALLOW_ENCODED_SLASH =
Boolean.valueOf(System.getProperty("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH", "false")).booleanValue();
return digit;
}
- private final static int debug=0;
- private static void log( String s ) {
- if (log.isDebugEnabled())
- log.debug("URLDecoder: " + s );
- }
-
}
// -------------------- Internal implementation --------------------
- //
- private void init() {
-
- }
-
private void initSafeChars() {
safeChars=new BitSet(128);
int i;
}
-
- // -------------------- Internal Extensions --------------------
-
- // Fast access. First index is the hook type
- // ( FixedNotificationFilter.getType() ).
- NotificationListener hooks[][]=new NotificationListener[20][];
- int hookCount[]=new int[20];
-
- private synchronized void registerNotifications( FixedNotificationFilter filter ) {
- String names[]=filter.getNames();
- Registry reg=Registry.getRegistry(null, null);
- for( int i=0; i<names.length; i++ ) {
- int code=reg.getId(null, names[i]);
- if( hooks.length < code ) {
- // XXX reallocate
- throw new RuntimeException( "Too many hooks " + code );
- }
- NotificationListener listeners[]=hooks[code];
- if( listeners== null ) {
-
- }
-
-
- }
- }
-
}