com.teamdev.jxbrowser.event
Class RequestEvent
java.lang.Object
java.util.EventObject
com.teamdev.jxbrowser.event.WebBrowserEvent
com.teamdev.jxbrowser.event.RequestEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- LocationEvent, ProgressEvent, SecurityEvent, StateEvent, StatusEvent
public abstract class RequestEvent
- extends WebBrowserEvent
Base class of request events hierarchy
- See Also:
- Serialized Form
Field Summary |
protected org.mozilla.interfaces.nsIRequest |
_request
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
RequestEvent(WebBrowser webBrowser,
org.mozilla.interfaces.nsIWebProgress webProgress,
org.mozilla.interfaces.nsIRequest request)
|
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_request
protected final org.mozilla.interfaces.nsIRequest _request
RequestEvent
public RequestEvent(WebBrowser webBrowser,
org.mozilla.interfaces.nsIWebProgress webProgress,
org.mozilla.interfaces.nsIRequest request)
isLoadingDocument
public boolean isLoadingDocument()
- Indicate that current request in load's or process the document
isLoadNormal
public boolean isLoadNormal()
- Returns:
- true if no special load flags in loading.
isLoadBackground
public boolean isLoadBackground()
- Returns:
- true if don't deliver status notifications to the
nsIProgressEventSink, or keep this load from completing the
nsILoadGroup it may belong to.
isLoadInhibitCaching
public boolean isLoadInhibitCaching()
- Returns:
- true if prevents caching of any kind. It does not, however,
prevent cached content from being used to satisfy this request.
isLoadInhibitPersistenCaching
public boolean isLoadInhibitPersistenCaching()
- Returns:
- true if prevents caching on disk (or other persistent media),
which may be needed to preserve privacy. For HTTPS, this flag is
set automatically.
isLoadByPassCache
public boolean isLoadByPassCache()
- Returns:
- true if force an end-to-end download of content data from the
origin server. This flag is used for a shift-reload.
isLoadFromCache
public boolean isLoadFromCache()
- Returns:
- true if Load from the cache, bypassing protocol specific
validation logic. This flag is used when browsing via history. It
is not recommended for normal browsing as it may likely violate
reasonable assumptions made by the server and confuse users.
isRequestPending
public boolean isRequestPending()
getRequestUrlName
public java.lang.String getRequestUrlName()
- Returns:
- the name of the request. Often this is the URI of the request.