|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.FederatedHttpMessage
Represents an HTTP protocol request or response message.
Supported API: true
Extendable: false
Field Summary | |
private FederatedHttpBodyPart |
body
|
private static String |
CLASSNAME
|
static long |
EXTERNALIZATION_VERSION_UID
|
private Hashtable |
headings
|
private static Hashtable |
monthNameToNumber
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
Constructor Summary | |
FederatedHttpMessage()
Constructor returning an instance initialized with an empty set of headings and a null body. |
|
FederatedHttpMessage(FederatedHttpInputStream inputStream)
Constructor returning an instance initialized with the results of reading and parsing a specified input stream. |
Method Summary | |
void |
addHeading(String line)
Parses and adds the specified line to the set of HTTP message headings. |
void |
addHeading(String keyword,
String value)
Adds the specified keyword/value pair to the set of HTTP message headings. |
FederatedHttpBodyPart |
getBody()
Gets the value of the attribute: body. |
Date |
getDateHeading(String keyword)
Returns the specified date heading from the heading vector. |
String |
getHeading(String keyword)
Returns the specified heading from the heading vector. |
Hashtable |
getHeadings()
Gets the value of the attribute: headings. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(FederatedHttpMessage thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
removeHeading(String keyword)
Removes the specified heading from the set of HTTP message headings. |
void |
setBody(FederatedHttpBodyPart a_Body)
Sets the value of the attribute: body. |
void |
setHeadings(Hashtable a_Headings)
Sets the value of the attribute: headings. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
void |
writeTo(OutputStream outputStream)
Writes the HTTP message as a MIME object to the specified output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private Hashtable headings
private FederatedHttpBodyPart body
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static Hashtable monthNameToNumber
Constructor Detail |
public FederatedHttpMessage() throws WTPropertyVetoException
WTPropertyVetoException
public FederatedHttpMessage(FederatedHttpInputStream inputStream) throws WTPropertyVetoException, FederationServicesException
inputStream
-
WTPropertyVetoException
FederationServicesException
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(FederatedHttpMessage thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public Hashtable getHeadings()
public void setHeadings(Hashtable a_Headings) throws WTPropertyVetoException
a_Headings
-
WTPropertyVetoException
public FederatedHttpBodyPart getBody()
public void setBody(FederatedHttpBodyPart a_Body) throws WTPropertyVetoException
a_Body
-
WTPropertyVetoException
public void addHeading(String line) throws WTPropertyVetoException
line
-
WTPropertyVetoException
public void addHeading(String keyword, String value) throws WTPropertyVetoException
keyword
- value
-
WTPropertyVetoException
public String getHeading(String keyword)
keyword
-
public Date getDateHeading(String keyword)
keyword
-
public void removeHeading(String keyword)
keyword
- public void writeTo(OutputStream outputStream) throws FederationServicesException
outputStream
-
FederationServicesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |