com.findwise.hydra.net.ResponsibleHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-core Show documentation
Show all versions of hydra-core Show documentation
Hydra Core - The main runnable artifact of Hydra
package com.findwise.hydra.net;
import java.io.IOException;
import org.apache.http.HttpException;
import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.protocol.HttpContext;
import org.apache.http.protocol.HttpRequestHandler;
public interface ResponsibleHandler extends HttpRequestHandler {
/**
* Implementing classes should guarantee expected behavior if and only if
* supports(request) returns true.
*/
@Override
public void handle(HttpRequest request, HttpResponse response,
HttpContext context) throws HttpException, IOException;
/**
* Indicates that this handler can serve the given request by a later call
* to handle(...)
*/
public boolean supports(HttpRequest request);
public String[] getSupportedUrls();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy