
artoria.action.http.AbstractHttpHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.action.http;
import artoria.action.handler.AbstractAutoClassicActionHandler;
import artoria.util.Assert;
import java.lang.reflect.Type;
public abstract class AbstractHttpHandler extends AbstractAutoClassicActionHandler implements HttpHandler {
public AbstractHttpHandler(String actionName, Class> inputType) {
super(actionName, inputType);
}
public AbstractHttpHandler(String actionName) {
super(actionName);
}
protected abstract Object execute(HttpParameters httpParams);
@Override
public T execute(Object input, Class clazz) {
Assert.isInstanceOf(HttpParameters.class, input
, "Parameter \"input\" must instance of \"HttpParameters\". ");
return execute((HttpParameters) input, (Type) clazz);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy