Source Code Cross Referenced for DavIfTokenManager.java in  » Portal » Open-Portal » com » sun » portal » rproxy » connectionhandler » webdav » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » com.sun.portal.rproxy.connectionhandler.webdav 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* Generated By:JavaCC: Do not edit this line. DavIfTokenManager.java */
002:        /*
003:         * $Id : $
004:         * $Source : $
005:         * $Log: DavIfTokenManager.java,v $
006:         * Revision 1.3  2005/11/30 11:27:25  ss150821
007:         * 6356996 - Srap Code base needs to save files in the unix file format and not windows
008:         *
009:         * Revision 1.2  2005/02/23 09:03:11  ss150821
010:         * RFE 6223490 - SRA Should use JDK based logging
011:         *
012:         * Revision 1.1  2003/04/15 05:22:10  mm132998
013:         * WebDAV support
014:         *
015:         *
016:         */
017:        package com.sun.portal.rproxy.connectionhandler.webdav;
018:
019:        public class DavIfTokenManager implements  DavIfConstants {
020:            public java.io.PrintStream debugStream = System.out;
021:
022:            public void setDebugStream(java.io.PrintStream ds) {
023:                debugStream = ds;
024:            }
025:
026:            private final int jjStopAtPos(int pos, int kind) {
027:                jjmatchedKind = kind;
028:                jjmatchedPos = pos;
029:                return pos + 1;
030:            }
031:
032:            private final int jjMoveStringLiteralDfa0_0() {
033:                switch (curChar) {
034:                case 40:
035:                    return jjStopAtPos(0, 7);
036:                case 41:
037:                    return jjStopAtPos(0, 8);
038:                case 58:
039:                    return jjStopAtPos(0, 6);
040:                case 67:
041:                    return jjMoveStringLiteralDfa1_0(0x1000L);
042:                case 69:
043:                    return jjMoveStringLiteralDfa1_0(0x2000L);
044:                case 73:
045:                    return jjMoveStringLiteralDfa1_0(0x20L);
046:                case 78:
047:                    return jjMoveStringLiteralDfa1_0(0x800L);
048:                case 91:
049:                    return jjStopAtPos(0, 9);
050:                case 93:
051:                    return jjStopAtPos(0, 10);
052:                default:
053:                    return 1;
054:                }
055:            }
056:
057:            private final int jjMoveStringLiteralDfa1_0(long active0) {
058:                try {
059:                    curChar = input_stream.readChar();
060:                } catch (java.io.IOException e) {
061:                    return 1;
062:                }
063:                switch (curChar) {
064:                case 102:
065:                    if ((active0 & 0x20L) != 0L)
066:                        return jjStopAtPos(1, 5);
067:                    break;
068:                case 110:
069:                    return jjMoveStringLiteralDfa2_0(active0, 0x2000L);
070:                case 111:
071:                    return jjMoveStringLiteralDfa2_0(active0, 0x1800L);
072:                default:
073:                    return 2;
074:                }
075:                return 2;
076:            }
077:
078:            private final int jjMoveStringLiteralDfa2_0(long old0, long active0) {
079:                if (((active0 &= old0)) == 0L)
080:                    return 2;
081:                try {
082:                    curChar = input_stream.readChar();
083:                } catch (java.io.IOException e) {
084:                    return 2;
085:                }
086:                switch (curChar) {
087:                case 100:
088:                    return jjMoveStringLiteralDfa3_0(active0, 0x1000L);
089:                case 116:
090:                    if ((active0 & 0x800L) != 0L)
091:                        return jjStopAtPos(2, 11);
092:                    return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
093:                default:
094:                    return 3;
095:                }
096:            }
097:
098:            private final int jjMoveStringLiteralDfa3_0(long old0, long active0) {
099:                if (((active0 &= old0)) == 0L)
100:                    return 3;
101:                try {
102:                    curChar = input_stream.readChar();
103:                } catch (java.io.IOException e) {
104:                    return 3;
105:                }
106:                switch (curChar) {
107:                case 101:
108:                    return jjMoveStringLiteralDfa4_0(active0, 0x1000L);
109:                case 105:
110:                    return jjMoveStringLiteralDfa4_0(active0, 0x2000L);
111:                default:
112:                    return 4;
113:                }
114:            }
115:
116:            private final int jjMoveStringLiteralDfa4_0(long old0, long active0) {
117:                if (((active0 &= old0)) == 0L)
118:                    return 4;
119:                try {
120:                    curChar = input_stream.readChar();
121:                } catch (java.io.IOException e) {
122:                    return 4;
123:                }
124:                switch (curChar) {
125:                case 100:
126:                    return jjMoveStringLiteralDfa5_0(active0, 0x1000L);
127:                case 116:
128:                    return jjMoveStringLiteralDfa5_0(active0, 0x2000L);
129:                default:
130:                    return 5;
131:                }
132:            }
133:
134:            private final int jjMoveStringLiteralDfa5_0(long old0, long active0) {
135:                if (((active0 &= old0)) == 0L)
136:                    return 5;
137:                try {
138:                    curChar = input_stream.readChar();
139:                } catch (java.io.IOException e) {
140:                    return 5;
141:                }
142:                switch (curChar) {
143:                case 85:
144:                    return jjMoveStringLiteralDfa6_0(active0, 0x1000L);
145:                case 121:
146:                    return jjMoveStringLiteralDfa6_0(active0, 0x2000L);
147:                default:
148:                    return 6;
149:                }
150:            }
151:
152:            private final int jjMoveStringLiteralDfa6_0(long old0, long active0) {
153:                if (((active0 &= old0)) == 0L)
154:                    return 6;
155:                try {
156:                    curChar = input_stream.readChar();
157:                } catch (java.io.IOException e) {
158:                    return 6;
159:                }
160:                switch (curChar) {
161:                case 45:
162:                    return jjMoveStringLiteralDfa7_0(active0, 0x2000L);
163:                case 82:
164:                    return jjMoveStringLiteralDfa7_0(active0, 0x1000L);
165:                default:
166:                    return 7;
167:                }
168:            }
169:
170:            private final int jjMoveStringLiteralDfa7_0(long old0, long active0) {
171:                if (((active0 &= old0)) == 0L)
172:                    return 7;
173:                try {
174:                    curChar = input_stream.readChar();
175:                } catch (java.io.IOException e) {
176:                    return 7;
177:                }
178:                switch (curChar) {
179:                case 76:
180:                    if ((active0 & 0x1000L) != 0L)
181:                        return jjStopAtPos(7, 12);
182:                    break;
183:                case 84:
184:                    return jjMoveStringLiteralDfa8_0(active0, 0x2000L);
185:                default:
186:                    return 8;
187:                }
188:                return 8;
189:            }
190:
191:            private final int jjMoveStringLiteralDfa8_0(long old0, long active0) {
192:                if (((active0 &= old0)) == 0L)
193:                    return 8;
194:                try {
195:                    curChar = input_stream.readChar();
196:                } catch (java.io.IOException e) {
197:                    return 8;
198:                }
199:                switch (curChar) {
200:                case 97:
201:                    return jjMoveStringLiteralDfa9_0(active0, 0x2000L);
202:                default:
203:                    return 9;
204:                }
205:            }
206:
207:            private final int jjMoveStringLiteralDfa9_0(long old0, long active0) {
208:                if (((active0 &= old0)) == 0L)
209:                    return 9;
210:                try {
211:                    curChar = input_stream.readChar();
212:                } catch (java.io.IOException e) {
213:                    return 9;
214:                }
215:                switch (curChar) {
216:                case 103:
217:                    return jjMoveStringLiteralDfa10_0(active0, 0x2000L);
218:                default:
219:                    return 10;
220:                }
221:            }
222:
223:            private final int jjMoveStringLiteralDfa10_0(long old0, long active0) {
224:                if (((active0 &= old0)) == 0L)
225:                    return 10;
226:                try {
227:                    curChar = input_stream.readChar();
228:                } catch (java.io.IOException e) {
229:                    return 10;
230:                }
231:                switch (curChar) {
232:                case 45:
233:                    return jjMoveStringLiteralDfa11_0(active0, 0x2000L);
234:                default:
235:                    return 11;
236:                }
237:            }
238:
239:            private final int jjMoveStringLiteralDfa11_0(long old0, long active0) {
240:                if (((active0 &= old0)) == 0L)
241:                    return 11;
242:                try {
243:                    curChar = input_stream.readChar();
244:                } catch (java.io.IOException e) {
245:                    return 11;
246:                }
247:                switch (curChar) {
248:                case 83:
249:                    return jjMoveStringLiteralDfa12_0(active0, 0x2000L);
250:                default:
251:                    return 12;
252:                }
253:            }
254:
255:            private final int jjMoveStringLiteralDfa12_0(long old0, long active0) {
256:                if (((active0 &= old0)) == 0L)
257:                    return 12;
258:                try {
259:                    curChar = input_stream.readChar();
260:                } catch (java.io.IOException e) {
261:                    return 12;
262:                }
263:                switch (curChar) {
264:                case 116:
265:                    return jjMoveStringLiteralDfa13_0(active0, 0x2000L);
266:                default:
267:                    return 13;
268:                }
269:            }
270:
271:            private final int jjMoveStringLiteralDfa13_0(long old0, long active0) {
272:                if (((active0 &= old0)) == 0L)
273:                    return 13;
274:                try {
275:                    curChar = input_stream.readChar();
276:                } catch (java.io.IOException e) {
277:                    return 13;
278:                }
279:                switch (curChar) {
280:                case 114:
281:                    return jjMoveStringLiteralDfa14_0(active0, 0x2000L);
282:                default:
283:                    return 14;
284:                }
285:            }
286:
287:            private final int jjMoveStringLiteralDfa14_0(long old0, long active0) {
288:                if (((active0 &= old0)) == 0L)
289:                    return 14;
290:                try {
291:                    curChar = input_stream.readChar();
292:                } catch (java.io.IOException e) {
293:                    return 14;
294:                }
295:                switch (curChar) {
296:                case 105:
297:                    return jjMoveStringLiteralDfa15_0(active0, 0x2000L);
298:                default:
299:                    return 15;
300:                }
301:            }
302:
303:            private final int jjMoveStringLiteralDfa15_0(long old0, long active0) {
304:                if (((active0 &= old0)) == 0L)
305:                    return 15;
306:                try {
307:                    curChar = input_stream.readChar();
308:                } catch (java.io.IOException e) {
309:                    return 15;
310:                }
311:                switch (curChar) {
312:                case 110:
313:                    return jjMoveStringLiteralDfa16_0(active0, 0x2000L);
314:                default:
315:                    return 16;
316:                }
317:            }
318:
319:            private final int jjMoveStringLiteralDfa16_0(long old0, long active0) {
320:                if (((active0 &= old0)) == 0L)
321:                    return 16;
322:                try {
323:                    curChar = input_stream.readChar();
324:                } catch (java.io.IOException e) {
325:                    return 16;
326:                }
327:                switch (curChar) {
328:                case 103:
329:                    if ((active0 & 0x2000L) != 0L)
330:                        return jjStopAtPos(16, 13);
331:                    break;
332:                default:
333:                    return 17;
334:                }
335:                return 17;
336:            }
337:
338:            static final int[] jjnextStates = {};
339:
340:            public static final String[] jjstrLiteralImages = {
341:                    "",
342:                    null,
343:                    null,
344:                    null,
345:                    null,
346:                    "\111\146",
347:                    "\72",
348:                    "\50",
349:                    "\51",
350:                    "\133",
351:                    "\135",
352:                    "\116\157\164",
353:                    "\103\157\144\145\144\125\122\114",
354:                    "\105\156\164\151\164\171\55\124\141\147\55\123\164\162\151\156\147", };
355:
356:            public static final String[] lexStateNames = { "DEFAULT", };
357:
358:            static final long[] jjtoToken = { 0x3fe1L, };
359:
360:            static final long[] jjtoSkip = { 0x1eL, };
361:
362:            private SimpleCharStream input_stream;
363:
364:            private final int[] jjrounds = new int[0];
365:
366:            private final int[] jjstateSet = new int[0];
367:
368:            protected char curChar;
369:
370:            public DavIfTokenManager(SimpleCharStream stream) {
371:                if (SimpleCharStream.staticFlag)
372:                    throw new Error(
373:                            "ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
374:                input_stream = stream;
375:            }
376:
377:            public DavIfTokenManager(SimpleCharStream stream, int lexState) {
378:                this (stream);
379:                SwitchTo(lexState);
380:            }
381:
382:            public void ReInit(SimpleCharStream stream) {
383:                jjmatchedPos = jjnewStateCnt = 0;
384:                curLexState = defaultLexState;
385:                input_stream = stream;
386:                ReInitRounds();
387:            }
388:
389:            private final void ReInitRounds() {
390:                int i;
391:                jjround = 0x80000001;
392:                for (i = 0; i-- > 0;)
393:                    jjrounds[i] = 0x80000000;
394:            }
395:
396:            public void ReInit(SimpleCharStream stream, int lexState) {
397:                ReInit(stream);
398:                SwitchTo(lexState);
399:            }
400:
401:            public void SwitchTo(int lexState) {
402:                if (lexState >= 1 || lexState < 0)
403:                    throw new TokenMgrError(
404:                            "Error: Ignoring invalid lexical state : "
405:                                    + lexState + ". State unchanged.",
406:                            TokenMgrError.INVALID_LEXICAL_STATE);
407:                else
408:                    curLexState = lexState;
409:            }
410:
411:            private final Token jjFillToken() {
412:                Token t = Token.newToken(jjmatchedKind);
413:                t.kind = jjmatchedKind;
414:                String im = jjstrLiteralImages[jjmatchedKind];
415:                t.image = (im == null) ? input_stream.GetImage() : im;
416:                t.beginLine = input_stream.getBeginLine();
417:                t.beginColumn = input_stream.getBeginColumn();
418:                t.endLine = input_stream.getEndLine();
419:                t.endColumn = input_stream.getEndColumn();
420:                return t;
421:            }
422:
423:            int curLexState = 0;
424:
425:            int defaultLexState = 0;
426:
427:            int jjnewStateCnt;
428:
429:            int jjround;
430:
431:            int jjmatchedPos;
432:
433:            int jjmatchedKind;
434:
435:            public final Token getNextToken() {
436:                int kind;
437:                Token specialToken = null;
438:                Token matchedToken;
439:                int curPos = 0;
440:
441:                EOFLoop: for (;;) {
442:                    try {
443:                        curChar = input_stream.BeginToken();
444:                    } catch (java.io.IOException e) {
445:                        jjmatchedKind = 0;
446:                        matchedToken = jjFillToken();
447:                        return matchedToken;
448:                    }
449:
450:                    try {
451:                        input_stream.backup(0);
452:                        while (curChar <= 32
453:                                && (0x100002600L & (1L << curChar)) != 0L)
454:                            curChar = input_stream.BeginToken();
455:                    } catch (java.io.IOException e1) {
456:                        continue EOFLoop;
457:                    }
458:                    jjmatchedKind = 0x7fffffff;
459:                    jjmatchedPos = 0;
460:                    curPos = jjMoveStringLiteralDfa0_0();
461:                    if (jjmatchedKind != 0x7fffffff) {
462:                        if (jjmatchedPos + 1 < curPos)
463:                            input_stream.backup(curPos - jjmatchedPos - 1);
464:                        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
465:                            matchedToken = jjFillToken();
466:                            return matchedToken;
467:                        } else {
468:                            continue EOFLoop;
469:                        }
470:                    }
471:                    int error_line = input_stream.getEndLine();
472:                    int error_column = input_stream.getEndColumn();
473:                    String error_after = null;
474:                    boolean EOFSeen = false;
475:                    try {
476:                        input_stream.readChar();
477:                        input_stream.backup(1);
478:                    } catch (java.io.IOException e1) {
479:                        EOFSeen = true;
480:                        error_after = curPos <= 1 ? "" : input_stream
481:                                .GetImage();
482:                        if (curChar == '\n' || curChar == '\r') {
483:                            error_line++;
484:                            error_column = 0;
485:                        } else
486:                            error_column++;
487:                    }
488:                    if (!EOFSeen) {
489:                        input_stream.backup(1);
490:                        error_after = curPos <= 1 ? "" : input_stream
491:                                .GetImage();
492:                    }
493:                    throw new TokenMgrError(EOFSeen, curLexState, error_line,
494:                            error_column, error_after, curChar,
495:                            TokenMgrError.LEXICAL_ERROR);
496:                }
497:            }
498:
499:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.