FileDocCategorySizeDatePackage
HTTPServiceConfigTest.javaAPI DocGlassfish v2 API5960Fri May 04 22:23:54 BST 2007com.sun.enterprise.management.config

HTTPServiceConfigTest

public final class HTTPServiceConfigTest extends com.sun.enterprise.management.AMXTestBase

Fields Summary
static final Map
EMPTY_MAP
Constructors Summary
public HTTPServiceConfigTest()

	
Methods Summary
final synchronized com.sun.appserv.management.config.HTTPServiceConfigproxy()

	    return getConfigConfig().getHTTPServiceConfig();
	
public voidtestAccessLog()

	    if ( ! checkNotOffline( "testAccessLog" ) )
	    {
	        return;
	    }
	    
		AccessLogConfig on = proxy().getAccessLogConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createAccessLogConfig(EMPTY_MAP);
			assert on == proxy().getAccessLogConfig();
		}
		AccessLogConfig rp = proxy().getAccessLogConfig();
		assert rp != null;
		if (!exists) { proxy().removeAccessLogConfig(); }
	
public voidtestConnectionPool()

	    if ( ! checkNotOffline( "testConnectionPool" ) )
	    {
	        return;
	    }
	    
		ConnectionPoolConfig on = proxy().getConnectionPoolConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createConnectionPoolConfig(EMPTY_MAP);
			assert on == proxy().getConnectionPoolConfig();
		}
		ConnectionPoolConfig rp = proxy().getConnectionPoolConfig();
		assert rp != null;
		if (!exists) { proxy().removeConnectionPoolConfig(); }
	
public voidtestHTTPFileCache()

	    if ( ! checkNotOffline( "testHTTPFileCache" ) )
	    {
	        return;
	    }
	    
		HTTPFileCacheConfig on = proxy().getHTTPFileCacheConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createHTTPFileCacheConfig(EMPTY_MAP);
			assert on == proxy().getHTTPFileCacheConfig();
		}
		HTTPFileCacheConfig rp = proxy().getHTTPFileCacheConfig();
		assert rp != null;
		if (!exists) { proxy().removeHTTPFileCacheConfig(); }
	
public voidtestHTTPProtocol()

	    if ( ! checkNotOffline( "testHTTPProtocol" ) )
	    {
	        return;
	    }
	    
		HTTPProtocolConfig on = proxy().getHTTPProtocolConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createHTTPProtocolConfig(EMPTY_MAP);
			assert on == proxy().getHTTPProtocolConfig();
		}
		HTTPProtocolConfig rp = proxy().getHTTPProtocolConfig();
		assert rp != null;
		if (!exists) { proxy().removeHTTPProtocolConfig(); }
	
public voidtestKeepAlive()

	    if ( ! checkNotOffline( "testKeepAlive" ) )
	    {
	        return;
	    }
	    
		KeepAliveConfig on = proxy().getKeepAliveConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createKeepAliveConfig(EMPTY_MAP);
			assert on == proxy().getKeepAliveConfig();
		}
		KeepAliveConfig rp = proxy().getKeepAliveConfig();
		assert rp != null;
		if (!exists) { proxy().removeKeepAliveConfig(); }
	
public voidtestRequestProcessing()


		 
	
		 
	
	    if ( ! checkNotOffline( "testRequestProcessing" ) )
	    {
	        return;
	    }
	    
		RequestProcessingConfig on = proxy().getRequestProcessingConfig();
		boolean exists = (on != null);
		if (!exists)
		{
			on = proxy().createRequestProcessingConfig(EMPTY_MAP);
			assert on == proxy().getRequestProcessingConfig();
		}
		RequestProcessingConfig rp = proxy().getRequestProcessingConfig();
		assert rp != null;
		if (!exists) { proxy().removeRequestProcessingConfig(); }