|
|||||||||
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.QHttpHeader
com.trolltech.qt.network.QHttpResponseHeader
public class QHttpResponseHeader
The QHttpResponseHeader
class contains response header information for HTTP. This class is used by the QHttp
class to report the header information that the client received from the server.
HTTP responses have a status code that indicates the status of the response. This code is a 3-digit integer result code (for details see to RFC 1945). In addition to the status code, you can also specify a human-readable text that describes the reason for the code ("reason phrase"). This class allows you to get the status code and the reason phrase.
QHttpRequestHeader
, QHttp
, and HTTP Example.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
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 | |
---|---|
QHttpResponseHeader()
Constructs an empty HTTP response header. |
|
QHttpResponseHeader(int code)
Constructs a QHttpResponseHeader , setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
|
QHttpResponseHeader(int code,
java.lang.String text)
Constructs a QHttpResponseHeader , setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
|
QHttpResponseHeader(int code,
java.lang.String text,
int majorVer)
Constructs a QHttpResponseHeader , setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
|
QHttpResponseHeader(int code,
java.lang.String text,
int majorVer,
int minorVer)
Constructs a QHttpResponseHeader , setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
|
QHttpResponseHeader(QHttpResponseHeader header)
Constructs a copy of header. |
|
QHttpResponseHeader(java.lang.String str)
Constructs a HTTP response header from the string str. |
Method Summary | |
---|---|
QHttpResponseHeader |
clone()
This method is reimplemented for internal reasons |
java.lang.String |
reasonPhrase()
Returns the reason phrase of the HTTP response header. |
void |
setStatusLine(int code)
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
void |
setStatusLine(int code,
java.lang.String text)
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
void |
setStatusLine(int code,
java.lang.String text,
int majorVer)
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
void |
setStatusLine(int code,
java.lang.String text,
int majorVer,
int minorVer)
Sets the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. |
int |
statusCode()
Returns the status code of the HTTP response header. |
java.lang.String |
toString()
|
Methods inherited from class com.trolltech.qt.network.QHttpHeader |
---|
addValue, allValues, contentLength, contentType, hasContentLength, hasContentType, hasKey, isValid, keys, majorVersion, minorVersion, removeAllValues, removeValue, setContentLength, setContentType, setValue, setValues, value, values |
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, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QHttpResponseHeader()
public QHttpResponseHeader(QHttpResponseHeader header)
public QHttpResponseHeader(java.lang.String str)
public QHttpResponseHeader(int code, java.lang.String text, int majorVer)
QHttpResponseHeader
, setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public QHttpResponseHeader(int code, java.lang.String text)
QHttpResponseHeader
, setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public QHttpResponseHeader(int code)
QHttpResponseHeader
, setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public QHttpResponseHeader(int code, java.lang.String text, int majorVer, int minorVer)
QHttpResponseHeader
, setting the status code to code, the reason phrase to text and the protocol-version to majorVer and minorVer. statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
Method Detail |
---|
public final java.lang.String reasonPhrase()
statusCode()
, majorVersion()
, and minorVersion()
.
public final void setStatusLine(int code, java.lang.String text, int majorVer)
statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public final void setStatusLine(int code, java.lang.String text)
statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public final void setStatusLine(int code)
statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public final void setStatusLine(int code, java.lang.String text, int majorVer, int minorVer)
statusCode()
, reasonPhrase()
, majorVersion()
, and minorVersion()
.
public final int statusCode()
reasonPhrase()
, majorVersion()
, and minorVersion()
.
public java.lang.String toString()
toString
in class QHttpHeader
public QHttpResponseHeader clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |