com.sun.lwuit.html
Interface DocumentRequestHandler

All Known Subinterfaces:
AsyncDocumentRequestHandler
All Known Implementing Classes:
DefaultDocumentRequestHandler

public interface DocumentRequestHandler

The DocumentRequestHandler interface should be implemented so it returns documents in requested URLs.
Concrete classes should handle in its single method all necessary networking and IO issues.
Implementations of this interface are used by HTMLComponent to obtain links and form results


Method Summary
 java.io.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.
 

Method Detail

resourceRequested

java.io.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.

Parameters:
docInfo - A DocumentInfo object representing the requested URL and its attributes
Returns:
the document at the URL as an InputStream