org.jboss.resteasy.reactive.server.model.DelegatingServerRestHandler Maven / Gradle / Ivy
package org.jboss.resteasy.reactive.server.model;
import java.util.List;
import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext;
import org.jboss.resteasy.reactive.server.spi.ServerRestHandler;
public class DelegatingServerRestHandler implements ServerRestHandler {
private List delegates;
public DelegatingServerRestHandler(List delegates) {
this.delegates = delegates;
}
// for bytecode recording
public DelegatingServerRestHandler() {
}
public List getDelegates() {
return delegates;
}
public void setDelegates(List delegates) {
this.delegates = delegates;
}
@Override
public void handle(ResteasyReactiveRequestContext requestContext) throws Exception {
for (int i = 0; i < delegates.size(); i++) {
delegates.get(0).handle(requestContext);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy