1 18 package org.apache.beehive.netui.pageflow.interceptor; 19 20 import java.io.Serializable ; 21 import java.util.Map ; 22 import java.util.HashMap ; 23 24 27 public class InterceptorConfig 28 implements Serializable 29 { 30 private String _interceptorClass; 31 private Map _customProperties = new HashMap (); 32 33 protected InterceptorConfig() 34 { 35 } 36 37 protected InterceptorConfig( String interceptorClass ) 38 { 39 _interceptorClass = interceptorClass; 40 } 41 42 public String getInterceptorClass() 43 { 44 return _interceptorClass; 45 } 46 47 public void setInterceptorClass( String interceptorClass ) 48 { 49 _interceptorClass = interceptorClass; 50 } 51 52 public Map getCustomProperties() 53 { 54 return _customProperties; 55 } 56 57 void addCustomProperty( String name, String value ) 58 { 59 _customProperties.put( name, value ); 60 } 61 62 public String getCustomProperty( String name ) 63 { 64 return ( String ) _customProperties.get( name ); 65 } 66 } 67 | Popular Tags |