org.jboss.resteasy.reactive.server.model.FixedHandlersChainCustomizer Maven / Gradle / Ivy
package org.jboss.resteasy.reactive.server.model;
import java.util.Collections;
import java.util.List;
import org.jboss.resteasy.reactive.common.model.ResourceClass;
import org.jboss.resteasy.reactive.server.spi.ServerRestHandler;
public class FixedHandlersChainCustomizer implements HandlerChainCustomizer {
private List handlers;
private Phase phase;
public FixedHandlersChainCustomizer(List handlers, Phase phase) {
this.handlers = handlers;
this.phase = phase;
}
public FixedHandlersChainCustomizer() {
}
@Override
public List handlers(Phase phase, ResourceClass resourceClass,
ServerResourceMethod serverResourceMethod) {
if (this.phase == phase) {
return handlers;
}
return Collections.emptyList();
}
public List getHandlers() {
return handlers;
}
public void setHandlers(List handlers) {
this.handlers = handlers;
}
public Phase getPhase() {
return phase;
}
public void setPhase(Phase phase) {
this.phase = phase;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy