|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectittp.protocol.parser.TokenStream
ittp.protocol.parser.ITTPScan
The aim of this class is to scan the request send by the client.
Nested Class Summary | |
(package private) class |
ITTPScan.TokenException
This class that extends the class ittpException send an exception when it is invoked. |
(package private) class |
TokenStream.ParseException
This class that extends the class ittpException send an exception when it is invoked. |
Field Summary | |
(package private) static int |
COLON
|
(package private) static int |
COMA
|
(package private) static int |
CONNECTION
|
(package private) static int |
DATE
|
(package private) static int |
DOUBLESLASH
|
(package private) static int |
EOF
Declaration of the several TokenStream used in the program |
(package private) static int |
GET
|
(package private) static int |
HEAD
|
(package private) static int |
HOST
|
(package private) static int |
IF_MODIFIED_SINCE
|
(package private) static int |
ITTP
|
(package private) static int |
MINUS
|
(package private) static int |
NL
|
(package private) static int |
NUMBER
|
double |
nval
|
(package private) static int |
OPTIONS
|
(package private) static int |
RANGE
|
(package private) static int |
SLASH
|
(package private) static int |
SP
|
java.lang.String |
sval
|
int |
tok
|
(package private) static int |
TRACE
|
(package private) static int |
WORD
|
Constructor Summary | |
ITTPScan(java.io.BufferedReader stream)
Creates a new instance of Parser |
Method Summary | |
void |
filterString()
Method allowing to filter the different characters of a string. |
int |
next()
This method analyse and identify the headers contained in the request. |
java.lang.String |
next(int num)
This method determine the different parameters of the request that are separated by a syntaxic character. |
ittpException |
ParseException(java.lang.String msg)
|
void |
setup()
|
java.lang.String |
toString()
Convert to a string the headers identified. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static final int EOF
static final int NL
static final int SP
static final int NUMBER
static final int SLASH
static final int DOUBLESLASH
static final int COLON
static final int COMA
static final int MINUS
static final int WORD
static final int GET
static final int HEAD
static final int OPTIONS
static final int TRACE
static final int ITTP
static final int CONNECTION
static final int DATE
static final int HOST
static final int IF_MODIFIED_SINCE
static final int RANGE
public int tok
public java.lang.String sval
public double nval
Constructor Detail |
public ITTPScan(java.io.BufferedReader stream)
Method Detail |
public void setup()
setup
in class TokenStream
public void filterString()
filterString
in class TokenStream
public int next()
next
in class TokenStream
public java.lang.String next(int num)
next
in class TokenStream
num
- int containing the number of token.
public java.lang.String toString()
public ittpException ParseException(java.lang.String msg)
msg
- String containing the error message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |