|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContentHandler
Implementing this interface allows to intercept requests for certain content types. E.g. implementing this allows to perform downloads of non-displayable content, or ignore certain content altogether.
Method Summary | |
---|---|
boolean |
canHandleContent(java.lang.String contentType)
This method notifies underlying browser that this instance is capable of handling the given content type. |
void |
handleContent(java.net.URL url)
Process the data. |
boolean |
isPreferred(java.lang.String contentType)
This method notifies underlying browser that this instance should be treated as a preferred handler for the given content type. |
Method Detail |
---|
boolean isPreferred(java.lang.String contentType)
contentType
- type of content (for example "application/zip").
boolean canHandleContent(java.lang.String contentType)
contentType
- type of content (for example "application/zip").
void handleContent(java.net.URL url)
isPreferred
and canHandleContent
, this
method is invoked when the request for content should be processed.
url
- location of content that has to be processed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |