|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.www.http.BasicValue | +--org.w3c.www.http.HttpBag
Internal representation of protocol headers conforming to the bag spec. The bag specification is part of the Protocol Extension Protocol defined by w3c, it can be found
Fields inherited from class org.w3c.www.http.BasicValue |
isValid,
raw,
rlen,
roff |
Method Summary | |
void |
addBag(HttpBag subbag)
Add a named bag into this bag. |
void |
addItem(HttpBag subbag)
Add a sub-bag to this bag. |
void |
addItem(java.lang.String name)
Add an item into this bag. |
HttpBag |
getBag(java.lang.String name)
Get a named sub-bag from this bag. |
java.lang.String |
getName()
Get this bag names |
java.lang.Object |
getValue()
|
boolean |
hasBag(java.lang.String name)
Does this bag have a named sub-bag of the given name ? |
boolean |
hasItem(java.lang.String name)
Does this bag contains the given item, being a bag or a simple word. |
boolean |
isToplevelBag()
Is that a top level bag or not ? |
java.util.Enumeration |
keys()
Get all named items from this bag. |
protected void |
parse()
parse. |
protected HttpBag |
parseBag(org.w3c.www.http.ParseState ps)
parse bag. |
void |
removeItem(java.lang.String name)
Remove an item from that bag. |
protected void |
updateByteValue()
|
Methods inherited from class org.w3c.www.http.BasicValue |
addBytes,
appendValue,
checkByteValue,
emit,
error,
invalidateByteValue,
setBytes,
setString,
toExternalForm,
toString,
validate |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
protected final void updateByteValue()
protected HttpBag parseBag(org.w3c.www.http.ParseState ps) throws HttpParserException
protected final void parse() throws HttpParserException
public java.lang.Object getValue()
public java.lang.String getName()
public void addBag(HttpBag subbag)
bag
- The bag to add (in case item is a bag).public boolean hasBag(java.lang.String name)
name
- The name of the sub-bag to be tested for.public HttpBag getBag(java.lang.String name)
name
- The name of the sub-bag to get.public void addItem(java.lang.String name)
name
- The new item name.public void addItem(HttpBag subbag)
subbag
- The sub-bag to add.public boolean hasItem(java.lang.String name)
name
- The name of the item to test.public void removeItem(java.lang.String name)
name
- The name of the item to remove.public java.util.Enumeration keys()
public boolean isToplevelBag()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |