org.apache.wiki.util
Class UtilJ2eeCompat

java.lang.Object
  extended by org.apache.wiki.util.UtilJ2eeCompat

public class UtilJ2eeCompat
extends Object

Misc J2EE Compatibility Utility Functions


Field Summary
static String GLASSFISH
           
static String JBOSS
           
static String JETTY
           
static String JRUN
           
static String OC4J
           
static String ORION
           
static String RESIN
           
static String REX_IP
           
static String TOMCAT
           
protected static Boolean useOutputStreamValue
           
static String WEBLOGIC
           
static String WEBSPHERE
           
 
Constructor Summary
UtilJ2eeCompat()
           
 
Method Summary
static String getServerInfo()
           
protected static void initCompatibilityOptions(String serverInfo)
          Simple check of the servlet container
static boolean useOutputStream(String serverInfo)
          Determines the response wrapper for the servlet filters
static boolean useOutputStream(String serverInfo, Boolean boolInitialize)
          For testing only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOMCAT

public static final String TOMCAT
See Also:
Constant Field Values

ORION

public static final String ORION
See Also:
Constant Field Values

RESIN

public static final String RESIN
See Also:
Constant Field Values

REX_IP

public static final String REX_IP
See Also:
Constant Field Values

OC4J

public static final String OC4J
See Also:
Constant Field Values

JRUN

public static final String JRUN
See Also:
Constant Field Values

JETTY

public static final String JETTY
See Also:
Constant Field Values

WEBSPHERE

public static final String WEBSPHERE
See Also:
Constant Field Values

WEBLOGIC

public static final String WEBLOGIC
See Also:
Constant Field Values

GLASSFISH

public static final String GLASSFISH
See Also:
Constant Field Values

JBOSS

public static final String JBOSS
See Also:
Constant Field Values

useOutputStreamValue

protected static Boolean useOutputStreamValue
Constructor Detail

UtilJ2eeCompat

public UtilJ2eeCompat()
Method Detail

useOutputStream

public static boolean useOutputStream(String serverInfo)
Determines the response wrapper for the servlet filters

Parameters:
serverInfo - The string returned from context.getServerInfo()
Returns:
true if standard response wrapper does not work properly; false default, otherwise

useOutputStream

public static boolean useOutputStream(String serverInfo,
                                      Boolean boolInitialize)
For testing only

Parameters:
serverInfo - The string returned from context.getServerInfo()
boolInitialize - True, if you want to force initialization again
Returns:
true if standard response wrapper does not work properly; false default, otherwise

initCompatibilityOptions

protected static void initCompatibilityOptions(String serverInfo)
Simple check of the servlet container

Parameters:
serverInfo - The string returned from context.getServerInfo()

getServerInfo

public static String getServerInfo()
Returns:
the Container type that has been detected


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.