static String[] getMethodArray (BitSet methodSet) { if (methodSet == null || methodSet.isEmpty()) { return null; } int size = 0; ArrayList<String> methods = new ArrayList(); for (int i=methodSet.nextSetBit(0); i>=0; i=methodSet.nextSetBit(i+1)){ methods.add(getMethodName(i)); size += 1; } return (String[]) methods.toArray(new String[size]); }
static String[] getMethodArray (BitSet methodSet) { if (methodSet == null || methodSet.isEmpty()) { return null; } int size = 0; ArrayList<String> methods = new ArrayList(); for (int i=methodSet.nextSetBit(0); i>=0; i=methodSet.nextSetBit(i+1)){ methods.add(getMethodName(i)); size += 1; } return (String[]) methods.toArray(new String[size]); }
static String getActions (BitSet methodSet) { if (methodSet == null || methodSet.isEmpty()) { return null; } StringBuffer actions = null; for (int i=methodSet.nextSetBit(0); i>=0; i=methodSet.nextSetBit(i+1)){ if (actions == null) { actions = new StringBuffer(); } else { actions.append(","); } actions.append(getMethodName(i)); } return (actions == null ? null : actions.toString()); }
public String toString() { return "MethodValue( " + getMethodName(index) + super.toString() + " )"; } }
static String getActions (BitSet methodSet) { if (methodSet == null || methodSet.isEmpty()) { return null; } StringBuffer actions = null; for (int i=methodSet.nextSetBit(0); i>=0; i=methodSet.nextSetBit(i+1)){ if (actions == null) { actions = new StringBuffer(); } else { actions.append(","); } actions.append(getMethodName(i)); } return (actions == null ? null : actions.toString()); }
public String toString() { return "MethodValue( " + getMethodName(index) + super.toString() + " )"; } }
MethodValue getMethodValue(int methodIndex) { String methodName = MethodValue.getMethodName(methodIndex); synchronized(methodValues) { MethodValue methodValue = methodValues.get(methodName); if (methodValue == null) { methodValue = new MethodValue(methodName,otherConstraint); methodValues.put(methodName,methodValue); if (WebPermissionUtil.logger.isLoggable(Level.FINE)){ WebPermissionUtil.logger.log (Level.FINE,"JACC: created MethodValue: " + methodValue); } } return methodValue; } }
MethodValue getMethodValue(int methodIndex) { String methodName = MethodValue.getMethodName(methodIndex); synchronized(methodValues) { MethodValue methodValue = methodValues.get(methodName); if (methodValue == null) { methodValue = new MethodValue(methodName,otherConstraint); methodValues.put(methodName,methodValue); if (WebPermissionUtil.logger.isLoggable(Level.FINE)){ WebPermissionUtil.logger.log (Level.FINE,"JACC: created MethodValue: " + methodValue); } } return methodValue; } }