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, wasURLVisited
protected static final Object LOCK
public void resourceRequestedAsync(DocumentInfo docInfo, IOCallback callback)
resourceRequestedAsync
in interface AsyncDocumentRequestHandler
resourceRequestedAsync
in class DefaultDocumentRequestHandler
docInfo
- 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 DocumentRequestHandler
resourceRequested
in class DefaultDocumentRequestHandler
docInfo
- A DocumentInfo object representing the requested URL and its attributesprotected ConnectionRequest createConnectionRequest(DocumentInfo docInfo, IOCallback callback, Object[] response)