|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.network.QNetworkCacheMetaData
public class QNetworkCacheMetaData
The QNetworkCacheMetaData class provides cache information. QNetworkCacheMetaData provides information about a cache file including the url, when it was last modified, when the cache file was created, headers for file and if the file should be saved onto a disk.
QAbstractNetworkCache
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QNetworkCacheMetaData()
Constructs an invalid network cache meta data. |
|
QNetworkCacheMetaData(QNetworkCacheMetaData other)
Constructs a copy of the otherQNetworkCacheMetaData. |
Method Summary | |
---|---|
java.util.HashMap |
attributes()
|
QNetworkCacheMetaData |
clone()
This method is reimplemented for internal reasons |
QDateTime |
expirationDate()
Returns the date and time when the meta data expires. |
boolean |
isValid()
Returns true if this network cache meta data has attributes that have been set otherwise false. |
QDateTime |
lastModified()
Returns the date and time when the meta data was last modified. |
java.util.List |
rawHeaders()
Returns a list of all raw headers that are set in this meta data. |
void |
readFrom(QDataStream arg__1)
|
boolean |
saveToDisk()
Returns is this cache should be allowed to be stored on disk. |
void |
setAttributes(java.util.HashMap attributes)
|
void |
setExpirationDate(QDateTime dateTime)
Sets the date and time when the meta data expires to dateTime. |
void |
setLastModified(QDateTime dateTime)
Sets the date and time when the meta data was last modified to dateTime. |
void |
setRawHeaders(java.util.List headers)
|
void |
setSaveToDisk(boolean allow)
Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow. |
void |
setUrl(QUrl url)
Sets the URL this network cache meta data to to be url. |
QUrl |
url()
Returns the URL this network cache meta data is referring to. |
void |
writeTo(QDataStream arg__1)
|
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QNetworkCacheMetaData()
isValid()
.
public QNetworkCacheMetaData(QNetworkCacheMetaData other)
Method Detail |
---|
public final java.util.HashMap attributes()
public final QDateTime expirationDate()
setExpirationDate()
.
public final boolean isValid()
public final QDateTime lastModified()
setLastModified()
.
public final void writeTo(QDataStream arg__1)
public final void readFrom(QDataStream arg__1)
public final java.util.List rawHeaders()
setRawHeaders()
.
public final boolean saveToDisk()
Some cache implementations can keep these cache items in memory for performance reasons, but for security reasons they should not be written to disk.
Specifically with http, documents marked with Pragma: no-cache, or have a Cache-control set to no-store or no-cache or any https document that doesn't have "Cache-control: public" set will set the saveToDisk to false.
setSaveToDisk()
.
public final void setAttributes(java.util.HashMap attributes)
public final void setExpirationDate(QDateTime dateTime)
expirationDate()
.
public final void setLastModified(QDateTime dateTime)
lastModified()
.
public final void setRawHeaders(java.util.List headers)
public final void setSaveToDisk(boolean allow)
saveToDisk()
.
public final void setUrl(QUrl url)
The password and fragment are removed from the url.
url()
.
public final QUrl url()
setUrl()
.
public QNetworkCacheMetaData clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |