|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.web.dd.wizards; /** * Filter Mapping representation * @author ana.von.klopp@sun.com */ class FilterMappingData { private String name = null; private Type type = null; private String pattern = null; private Dispatcher[] dispatch = new Dispatcher[0]; FilterMappingData() {} FilterMappingData(String name) { this.name = name; this.type = FilterMappingData.Type.URL; this.pattern = "/*"; //NOI18N } FilterMappingData(String name, Type type, String pattern, Dispatcher[] d) { this.name = name; this.type = type; this.pattern = pattern; this.dispatch = d; } public Object clone() { return new FilterMappingData(name, type, pattern, dispatch); } /** * Get the Name value. * @return the Name value. */ String getName() { return name; } /** * Set the Name value. * @param newName The new Name value. */ void setName(String newName) { this.name = newName; } /** * Get the Type value. * @return the Type value. */ Type getType() { return type; } /** * Set the Type value. * @param newType The new Type value. */ void setType(Type newType) { this.type = newType; } /** * Get the Pattern value. * @return the Pattern value. */ String getPattern() { return pattern; } /** * Set the Pattern value. * @param newPattern The new Pattern value. */ void setPattern(String newPattern) { this.pattern = newPattern; } /** * Get the DispatchConfig value. * @return the DispatchConfig value. */ Dispatcher[] getDispatcher() { return dispatch; } /** * Set the DispatchConfig value. * @param new dc new DispatchConfig value. */ void setDispatcher(Dispatcher[] d) { this.dispatch = d; } public String toString() { StringBuffer buf = new StringBuffer("FilterMapping for filter: "); //NOI18N buf.append(name); buf.append("\nMapping type: "); buf.append(type.toString()); buf.append(" for pattern: "); buf.append(pattern); buf.append("\nDispatch conditions: "); if(dispatch.length == 0) buf.append("REQUEST (not set)\n\n"); else { for(int i=0; i |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.