public class AsyncDocumentRequestHandlerImpl extends DefaultDocumentRequestHandler
| Constructor and Description |
|---|
AsyncDocumentRequestHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected ConnectionRequest |
createConnectionRequest(DocumentInfo docInfo,
IOCallback callback,
Object[] response) |
InputStream |
resourceRequested(DocumentInfo docInfo)
Implementations should return the document in the requested url as an InputStream
This is triggered only for the main document requested and not for its resources.
|
void |
resourceRequestedAsync(DocumentInfo docInfo,
IOCallback callback)
This method is called by HTMLComponent when a resource is requested asynchronously.
|
getResFile, isTrackVisitedURLs, setResFile, setTrackVisitedURLs, visitingURL, wasURLVisitedprotected static final Object LOCK
public void resourceRequestedAsync(DocumentInfo docInfo, IOCallback callback)
resourceRequestedAsync in interface AsyncDocumentRequestHandlerresourceRequestedAsync in class DefaultDocumentRequestHandlerdocInfo - A DocumentInfo object representing the requested URL and its attributescallback - The HTMLComponent that should be called back when the stream was fetched.public InputStream resourceRequested(DocumentInfo docInfo)
resourceRequested in interface DocumentRequestHandlerresourceRequested in class DefaultDocumentRequestHandlerdocInfo - A DocumentInfo object representing the requested URL and its attributesprotected ConnectionRequest createConnectionRequest(DocumentInfo docInfo, IOCallback callback, Object[] response)