|
|||||||||
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.HttpAccept
public class HttpAccept
Field Summary | |
---|---|
protected java.lang.String[] |
aparams
The list of accept parameters name. |
protected java.lang.String[] |
avalues
The list of accept parameters value. |
protected double |
quality
the quality |
protected MimeType |
type
The accepted MIME type. |
Fields inherited from class org.w3c.www.http.BasicValue |
---|
isValid, raw, rlen, roff |
Constructor Summary | |
---|---|
HttpAccept()
|
Method Summary | |
---|---|
java.lang.String |
getAcceptParameter(java.lang.String name)
Get the String value for a parameter. |
MimeType |
getMimeType()
Get this object accepted MIME type. |
double |
getQuality()
Get the quality of this accept clause. |
java.lang.Object |
getValue()
HeaderValue implemenntation - Get this header value. |
protected void |
invalideByteValue()
|
protected int |
lookup(java.lang.String name)
Lookup for the given parameter binding. |
protected void |
parse()
parse. |
void |
setAcceptParameter(java.lang.String name,
java.lang.String value)
Set the value of an accept parameter. |
void |
setMimeType(MimeType type)
Set the accepted MIME type. |
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 |
Field Detail |
---|
protected java.lang.String[] aparams
protected java.lang.String[] avalues
protected MimeType type
protected double quality
Constructor Detail |
---|
public HttpAccept()
Method Detail |
---|
protected void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.protected void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
protected void invalideByteValue()
public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
protected int lookup(java.lang.String name)
public java.lang.String getAcceptParameter(java.lang.String name)
public void setAcceptParameter(java.lang.String name, java.lang.String value)
name
- The name of the accept parameter to set.value
- The value of the accept parameter to set.public MimeType getMimeType()
public void setMimeType(MimeType type)
type
- The accepted MIME type.public double getQuality()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |