FileDocCategorySizeDatePackage
CacheMapping.javaAPI DocGlassfish v2 API10119Fri May 04 22:31:54 BST 2007com.sun.enterprise.deployment.runtime.web

CacheMapping

public class CacheMapping extends com.sun.enterprise.deployment.runtime.RuntimeDescriptor
this class contains runtime information for the web bundle it was kept to be backward compatible with the schema2beans descriptors generated by iAS 7.0 engineering team.
author
Jerome Dochez

Fields Summary
public static final String
SERVLET_NAME
public static final String
URL_PATTERN
public static final String
CACHE_HELPER_REF
public static final String
TIMEOUT
public static final String
NAME
public static final String
SCOPE
public static final String
REFRESH_FIELD
public static final String
HTTP_METHOD
public static final String
DISPATCHER
public static final String
KEY_FIELD
public static final String
CONSTRAINT_FIELD
Constructors Summary
public CacheMapping(CacheMapping other)

	// NOI18N
        
       
	super(other);
    
public CacheMapping()

	setAttributeValue(KEY_FIELD, SCOPE, "request.parameter");
	setAttributeValue(REFRESH_FIELD, SCOPE, "request.parameter");	
    
Methods Summary
public intaddConstraintField(ConstraintField value)

	return this.addValue(CONSTRAINT_FIELD, value);
    
public intaddDispatcher(java.lang.String value)

	return this.addValue(DISPATCHER, value);
    
public intaddHttpMethod(java.lang.String value)

	return this.addValue(HTTP_METHOD, value);
    
public intaddKeyField(boolean value)

	return this.addValue(KEY_FIELD, Boolean.valueOf(value));
    
public voidaddNewConstraintField(ConstraintField value)

	this.addValue(CONSTRAINT_FIELD, value);
    
public voidaddNewDispatcher(java.lang.String value)

	addValue(DISPATCHER, value);
    
public voidaddNewHttpMethod(java.lang.String value)

	addValue(HTTP_METHOD, value);
    
public java.lang.StringgetCacheHelperRef()

	return (String)this.getValue(CACHE_HELPER_REF);
    
public ConstraintFieldgetConstraintField(int index)

	return (ConstraintField)this.getValue(CONSTRAINT_FIELD, index);
    
public ConstraintField[]getConstraintField()

	return (ConstraintField[])this.getValues(CONSTRAINT_FIELD);
    
public java.lang.StringgetDispatcher(int index)

	return (String)this.getValue(DISPATCHER, index);
    
public java.lang.String[]getDispatcher()

	return (String[])this.getValues(DISPATCHER);
    
public java.lang.StringgetHttpMethod(int index)

	return (String)this.getValue(HTTP_METHOD, index);
    
public java.lang.String[]getHttpMethod()

	return (String[])this.getValues(HTTP_METHOD);
    
public boolean[]getKeyField()

	boolean[] ret = null;
	Boolean[] values = (Boolean[])this.getValues(KEY_FIELD);
	if (values != null)
	{
	    ret = new boolean[values.length];
	    for (int i=0; i<values.length; i++)
		ret[i] = values[i].booleanValue();
	}
	return ret;
    
public java.lang.StringgetServletName()

	return (String)this.getValue(SERVLET_NAME);
    
public java.lang.StringgetTimeout()

	return (String)this.getValue(TIMEOUT);
    
public java.lang.StringgetUrlPattern()

	return (String)this.getValue(URL_PATTERN);
    
public booleanisKeyField(int index)

	Boolean ret = (Boolean)this.getValue(KEY_FIELD, index);
	if (ret == null)
	    return false;
	return ret.booleanValue();
    
public booleanisRefreshField()

	Boolean ret = (Boolean)this.getValue(REFRESH_FIELD);
	if (ret == null)
	    return false;
	return ret.booleanValue();
    
public intremoveConstraintField(ConstraintField value)

	return this.removeValue(CONSTRAINT_FIELD, value);
    
public intremoveDispatcher(java.lang.String value)

	return this.removeValue(DISPATCHER, value);
    
public intremoveHttpMethod(java.lang.String value)

	return this.removeValue(HTTP_METHOD, value);
    
public intremoveKeyField(boolean value)

	return this.removeValue(KEY_FIELD, Boolean.valueOf(value));
    
public voidremoveKeyField(int index)

	this.removeValue(KEY_FIELD, index);
    
public voidsetCacheHelperRef(java.lang.String value)

	this.setValue(CACHE_HELPER_REF, value);
    
public voidsetConstraintField(int index, ConstraintField value)

	this.setValue(CONSTRAINT_FIELD, index, value);
    
public voidsetConstraintField(ConstraintField[] value)

	this.setValue(CONSTRAINT_FIELD, value);
    
public voidsetDispatcher(int index, java.lang.String value)

	this.setValue(DISPATCHER, index, value);
    
public voidsetDispatcher(java.lang.String[] value)

	this.setValue(DISPATCHER, value);
    
public voidsetHttpMethod(int index, java.lang.String value)

	this.setValue(HTTP_METHOD, index, value);
    
public voidsetHttpMethod(java.lang.String[] value)

	this.setValue(HTTP_METHOD, value);
    
public voidsetKeyField(int index, boolean value)

	this.setValue(KEY_FIELD, index, Boolean.valueOf(value));
    
public voidsetKeyField(boolean[] value)

	Boolean[] values = null;
	if (value != null)
	{
	    values = new Boolean[value.length];
	    for (int i = 0; i < value.length; i++)
                 values[i] = Boolean.valueOf(value[i]);
	}
	this.setValue(KEY_FIELD, values);
    
public voidsetRefreshField(boolean value)

	this.setValue(REFRESH_FIELD, Boolean.valueOf(value));
    
public voidsetServletName(java.lang.String value)

	this.setValue(SERVLET_NAME, value);
    
public voidsetTimeout(java.lang.String value)

	this.setValue(TIMEOUT, value);
    
public voidsetUrlPattern(java.lang.String value)

	this.setValue(URL_PATTERN, value);
    
public intsizeConstraintField()

	return this.size(CONSTRAINT_FIELD);
    
public intsizeDispatcher()

	return this.size(DISPATCHER);
    
public intsizeHttpMethod()

	return this.size(HTTP_METHOD);
    
public intsizeKeyField()

	return this.size(KEY_FIELD);
    
public booleanverify()

	return true;