io.undertow.servlet.api.ServletSecurityInfo Maven / Gradle / Ivy
package io.undertow.servlet.api;
import java.util.ArrayList;
import java.util.List;
/**
* @author Stuart Douglas
*/
public class ServletSecurityInfo extends SecurityInfo implements Cloneable {
private final List httpMethodSecurityInfo = new ArrayList();
@Override
protected ServletSecurityInfo createInstance() {
return new ServletSecurityInfo();
}
public ServletSecurityInfo addHttpMethodSecurityInfo(final HttpMethodSecurityInfo info) {
httpMethodSecurityInfo.add(info);
return this;
}
public List getHttpMethodSecurityInfo() {
return new ArrayList(httpMethodSecurityInfo);
}
@Override
public ServletSecurityInfo clone() {
ServletSecurityInfo info = super.clone();
for(HttpMethodSecurityInfo method : httpMethodSecurityInfo) {
info.httpMethodSecurityInfo.add(method.clone());
}
return info;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy