|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.www.http.BasicValue org.w3c.www.http.HttpBag
public class 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
Field Summary |
---|
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()
HeaderValue implemenntation - Get this header value. |
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()
Update the RFC822 compatible header value for this object. |
Methods inherited from class org.w3c.www.http.BasicValue |
---|
addBytes, appendValue, checkByteValue, clone, emit, error, invalidateByteValue, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
protected final void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
protected HttpBag parseBag(org.w3c.www.http.ParseState ps) throws HttpParserException
HttpParserException
- if parsing failed.protected final void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |