public abstract class HttpHandler
extends java.lang.Object
Abstract base class for HTTP handlers, which can override the functions of HttpRequest that perform network activity.
| Constructor and Description |
|---|
HttpHandler() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close(HttpRequest request)
Override the
HttpRequest.close function. |
int |
getType()
Return type of handler (external or internal).
|
boolean |
hasCookieHandling()
Return indicates whether the handler takes care of cookie handling or not.
|
abstract void |
send(HttpRequest request)
Override the
HttpRequest.send function. |
public abstract void close(HttpRequest request)
Override the HttpRequest.close function.
request - HTTP request whose close method will be overridden.public int getType()
Return type of handler (external or internal).
public boolean hasCookieHandling()
Return indicates whether the handler takes care of cookie handling or not.
Returns false by default.
public abstract void send(HttpRequest request)
Override the HttpRequest.send function.
request - HTTP request whose send method will be overridden.