|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.ibm.wbi.protocol.http.ParseMime
A ParseMime object is used to parse and manipulate HTTP MIME data.
| Field Summary | |
static java.lang.String |
COPYRIGHT
|
| Constructor Summary | |
ParseMime(java.lang.String s)
Given a string containing MIME data, this constructor creates a new ParseMime object and initializes it with the given MIME data. |
|
| Method Summary | |
void |
clearAllByKey(java.lang.String key)
Given a key this method clears all values associated with this key. |
java.util.Vector |
getAllByKey(java.lang.String key)
Given a key, this method returns a Vector containing all values associated with the key. |
java.lang.String |
getByKey(java.lang.String key)
Given a key, this method returns a string containing the associated MIME value from its current internal state. |
java.lang.String |
getContentLength()
This method returns a string containing the Content-Length: MIME value from its current internal state. |
java.lang.String |
getContentType()
This method returns a string containing the CONTENT-TYPE: MIME value from its current internal state. |
java.lang.String |
getExpires()
This method returns a string containing the EXPIRES: MIME value from its current internal state. |
java.lang.String |
getFrom()
This method returns a string containing the From: MIME value from its current internal state. |
java.lang.String |
getFullMime()
Obtains a string of MIME data. |
java.lang.String |
getHeader()
Obtains a string containing the MIME header string. |
java.lang.String |
getHost()
This method returns a string containing the Host: MIME value from its current internal state. |
java.lang.String |
getIfModifiedSince()
This method returns a string containing the IF-MODIFIED-SINCE: MIME value from its current internal state. |
java.lang.String |
getLastModified()
This method returns a string containing the LAST-MODIFIED: MIME value from its current internal state. |
java.lang.String |
getUserAgent()
This method returns a string containing the USER-AGENT: MIME value from its current internal state. |
void |
putAllByKey(java.lang.String key,
java.util.Vector vec)
Given a key and Vector containing values, this method sets a key to have multiple values within the current ParseMime object. |
void |
putByKey(java.lang.String key,
java.lang.String value)
Given a key and a value, this method sets the key/value pair within the current ParseMime object. |
void |
setHeader(java.lang.String iHead)
Sets the current MIME header string. |
java.lang.String |
toString()
Obtains a string of MIME data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String COPYRIGHT
| Constructor Detail |
public ParseMime(java.lang.String s)
s - A string containing MIME data.| Method Detail |
public java.lang.String getFullMime()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getHeader()
public void setHeader(java.lang.String iHead)
iHead - The new header.public java.lang.String getByKey(java.lang.String key)
key - The key to be used to lookup the value.
public void putByKey(java.lang.String key,
java.lang.String value)
key - The key to be used.value - The new value.public java.lang.String getContentLength()
public java.lang.String getFrom()
public java.lang.String getHost()
public java.lang.String getUserAgent()
public java.lang.String getContentType()
public java.lang.String getExpires()
public java.lang.String getIfModifiedSince()
public java.lang.String getLastModified()
public java.util.Vector getAllByKey(java.lang.String key)
key - The key to be used to lookup the value.null if no values associated with this key were
found.
public void putAllByKey(java.lang.String key,
java.util.Vector vec)
key - The key to be used to lookup the value.vec - A vector containing one or more values.public void clearAllByKey(java.lang.String key)
key - The key to be used to lookup the value.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||