|
|||||||||
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.HttpAcceptLanguage
public class HttpAcceptLanguage
Field Summary |
---|
Fields inherited from class org.w3c.www.http.BasicValue |
---|
isValid, raw, rlen, roff |
Constructor Summary | |
---|---|
HttpAcceptLanguage()
|
Method Summary | |
---|---|
java.lang.String |
getLanguage()
Get this accept language clause language. |
double |
getQuality()
Get the quality at which this language is accepted. |
java.lang.Object |
getValue()
HeaderValue implemenntation - Get this header value. |
protected void |
invalidateByteValue()
Invalidate the current byte value for this header, if any. |
protected void |
parse()
parse. |
void |
setLanguage(java.lang.String language)
Set the language accepted by this clause. |
void |
setQuality(double quality)
Set the quality under which this language is accepted. |
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, setBytes, setString, toExternalForm, toString, validate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpAcceptLanguage()
Method Detail |
---|
protected void parse() throws HttpParserException
parse
in class BasicValue
HttpParserException
- if parsing failed.protected void invalidateByteValue()
BasicValue
invalidateByteValue
in class BasicValue
protected void updateByteValue()
BasicValue
updateByteValue
in class BasicValue
public java.lang.Object getValue()
BasicValue
getValue
in interface HeaderValue
getValue
in class BasicValue
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- The accepted language.public double getQuality()
public void setQuality(double quality)
q
- The quality for this language.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |