Java 类org.springframework.security.web.savedrequest.Enumerator 实例源码

项目:metaworks_framework    文件:JSCompatibilityRequestWrapper.java   
@Override
@SuppressWarnings("rawtypes")
public Enumeration getParameterNames() {
    List<String> names = new ArrayList<String>();
    Enumeration enumeration = super.getParameterNames();
    while (enumeration.hasMoreElements()) {
        names.add(JSCompatibilityHelper.unencode((String) enumeration.nextElement()));
    }

    return new Enumerator<String>(names);
}
项目:SparkCommerce    文件:JSCompatibilityRequestWrapper.java   
@Override
@SuppressWarnings("rawtypes")
public Enumeration getParameterNames() {
    List<String> names = new ArrayList<String>();
    Enumeration enumeration = super.getParameterNames();
    while (enumeration.hasMoreElements()) {
        names.add(JSCompatibilityHelper.unencode((String) enumeration.nextElement()));
    }

    return new Enumerator<String>(names);
}
项目:blcdemo    文件:JSCompatibilityRequestWrapper.java   
@Override
@SuppressWarnings("rawtypes")
public Enumeration getParameterNames() {
    List<String> names = new ArrayList<String>();
    Enumeration enumeration = super.getParameterNames();
    while (enumeration.hasMoreElements()) {
        names.add(JSCompatibilityHelper.unencode((String) enumeration.nextElement()));
    }

    return new Enumerator<String>(names);
}
项目:motech    文件:SettingsServiceTest.java   
private void initBundle() throws Exception {
    when(bundleContext.getBundle(BUNDLE_ID)).thenReturn(bundle);
    when(bundle.getSymbolicName()).thenReturn(BUNDLE_SYMBOLIC_NAME);
    when(bundle.findEntries("", "*.properties", false)).thenReturn(new Enumerator(new ArrayList<>(asList(new URL("http://mock.com")))));
}