/** * Return a property from the protocol handler. * * @param name the property name * @return the property value */ public Object getProperty(String name) { if (protocolHandler == null) { return null; } return IntrospectionUtils.getProperty(protocolHandler, name); }
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); }
/** * Retrieves a formatted JVM information text. * The default StringManager will be used. * * @return the formatted JVM information text */ public static String getVMInfo() { return getVMInfo(sm); }
public static String guessInstall(String installSysProp, String homeSysProp, String jarName) { return guessInstall(installSysProp, homeSysProp, jarName, null); }
/** * Retrieves a formatted JVM thread dump. * The default StringManager will be used. * * @return the formatted JVM thread dump */ public static String getThreadDump() { return getThreadDump(sm); }
/** * returns true if the network buffer has * been flushed out and is empty * @return boolean */ public boolean flush(boolean block, Selector s, long timeout,MutableInteger lastWrite) throws IOException { if (lastWrite!=null) lastWrite.set(1); return true; //no network buffer in the regular channel }
public boolean isWritable() { return lastWrite.get()>0; } // ------------------------------------------------ HTTP/1.1 Output Methods
public Tomcat() { ExceptionUtils.preload(); }
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); } public static boolean setProperty(Object o, String name, String value,
/** * Return a property from the protocol handler. * * @param name the property name * @return the property value */ public Object getProperty(String name) { if (protocolHandler == null) { return null; } return IntrospectionUtils.getProperty(protocolHandler, name); }
public static String guessInstall(String installSysProp, String homeSysProp, String jarName) { return guessInstall(installSysProp, homeSysProp, jarName, null); }
/** * Retrieves a formatted JVM information text. * The default StringManager will be used. * * @return the formatted JVM information text */ public static String getVMInfo() { return getVMInfo(sm); }
/** * Retrieves a formatted JVM thread dump. * The default StringManager will be used. * * @return the formatted JVM thread dump */ public static String getThreadDump() { return getThreadDump(sm); }
/** * returns true if the network buffer has * been flushed out and is empty * @return boolean */ public boolean flush(boolean block, Selector s, long timeout,MutableInteger lastWrite) throws IOException { if (lastWrite!=null) lastWrite.set(1); return true; //no network buffer in the regular channel }
public boolean isWritable() { return lastWrite.get()>0; } // ------------------------------------------------ HTTP/1.1 Output Methods
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); } public static boolean setProperty(Object o, String name, String value,
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). */ public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); } public static boolean setProperty(Object o, String name, String value,
/** * Find a method with the right name If found, call the method ( if param is * int or boolean we'll convert value to the right type before) - that means * you can have setDebug(1). * @param o The object to set a property on * @param name The property name * @param value The property value * @return <code>true</code> if operation was successful */ public static boolean setProperty(Object o, String name, String value) { return setProperty(o,name,value,true); }
/** * Set a property on the protocol handler. * * @param name the property name * @param value the property value * @return <code>true</code> if the property was successfully set */ public boolean setProperty(String name, String value) { if (protocolHandler == null) { return false; } return IntrospectionUtils.setProperty(protocolHandler, name, value); }
/** * Set a property on the protocol handler. * * @param name the property name * @param value the property value * @return <code>true</code> if the property was successfully set */ public boolean setProperty(String name, String value) { if (protocolHandler == null) { return false; } return IntrospectionUtils.setProperty(protocolHandler, name, value); }