Interface HttpValidator
public interface HttpValidator
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.channel.Channel channel, ActionListener<Void> listener) An async HTTP request validating function that receives as arguments the initial part of a decoded HTTP request (which contains all the HTTP headers, but not the body contents), as well as the netty channel that the request is being received over, and must then call theActionListener#onResponsemethod on the listener parameter in case the authentication is to be considered successful, or otherwise callActionListener#onFailureand pass the failure exception.
-
Method Details
-
validate
void validate(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.channel.Channel channel, ActionListener<Void> listener) An async HTTP request validating function that receives as arguments the initial part of a decoded HTTP request (which contains all the HTTP headers, but not the body contents), as well as the netty channel that the request is being received over, and must then call theActionListener#onResponsemethod on the listener parameter in case the authentication is to be considered successful, or otherwise callActionListener#onFailureand pass the failure exception.
-