Source Code Cross Referenced for FilterInterface.java in  » Web-Server » Jigsaw » org » w3c » tools » resources » 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 » Web Server » Jigsaw » org.w3c.tools.resources 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        // FilterInterface.java
02:        // $Id: FilterInterface.java,v 1.4 2000/08/16 21:37:52 ylafon Exp $
03:        // (c) COPYRIGHT MIT and INRIA, 1996.
04:        // Please first read the full copyright statement in file COPYRIGHT.html
05:
06:        package org.w3c.tools.resources;
07:
08:        import java.io.OutputStream;
09:
10:        public interface FilterInterface {
11:
12:            /**
13:             * The lookup stage filtering.
14:             * This filter is invoked during lookup, it can cancel the lookup operation
15:             * in progress, by either throwing an exception (in case of error), or
16:             * by returning <strong>true</strong>, in which case, the filter has
17:             * perform the whole lookup operation itself.
18:             * @param ls The current lookup state, describing the state of the lookup
19:             * operation in progress.
20:             * @param lr The current lookup result, describing the already computed
21:             * part of the lookup operation.
22:             * @return A boolean, <strong>true</strong> if lookup has been completed
23:             * by the filter, and nothing else need to be done to complete it. 
24:             * Otherwise lookup should continue normally, and the filter returns
25:             * <strong>false</strong>.
26:             * @exception ProtocolException If some error occurs, and the whole 
27:             * lookup operation cannot be continued normally.
28:             */
29:
30:            public boolean lookup(LookupState ls, LookupResult lr)
31:                    throws ProtocolException;
32:
33:            /**
34:             * The filter's ingoing method is called before any request processing is
35:             * done by the target resource.
36:             * <p>This method can (if able) compute the whole request's reply, and 
37:             * return it. If processing should continue normally, then the filter
38:             * must return <strong>null</strong>.
39:             * <p>If a filter's <code>ingoingFilter</code> method gets called, 
40:             * then it is guaranteed that either its <code>outgoingFilter</code>
41:             * method or its <code>exceptionFilter</code> method gets called.
42:             * @param request The request being processed.
43:             * @param filters The whole array of filters to be applied before
44:             * actually continuing the process.
45:             * @param fidx The index in the above array of the filter being called.
46:             * @return A Reply instance, if the filter knows how to compute it, or
47:             * <strong>null</strong> if the request processing should continue
48:             * normally.
49:             * @exception ProtocolException If the filter fails.
50:             */
51:
52:            public ReplyInterface ingoingFilter(RequestInterface request,
53:                    FilterInterface filters[], int fidx)
54:                    throws ProtocolException;
55:
56:            /**
57:             * The filter's outgoing method is called once the target resource has
58:             * computed a reply.
59:             * <p>This method can return a Reply instance, in which case, the
60:             * processing should be aborted, and  the returned reply should be emited
61:             * back to the client. Otherwise, if the filter returns <strong>null
62:             * </strong> the processing continues normally.
63:             * @param request The request being processed.
64:             * @param reply The original reply, as emited by the target resource, 
65:             * and which has already been processed by the first filters.
66:             * @param filters The whole array of filters to be applied before
67:             * actually continuing the process.
68:             * @param fidx The index in the above array of the filter being called.
69:             * @exception ProtocolException If the filter fails.
70:             */
71:
72:            public ReplyInterface outgoingFilter(RequestInterface request,
73:                    ReplyInterface reply, FilterInterface filters[], int fidx)
74:                    throws ProtocolException;
75:
76:            /**
77:             * @param request The request being processed.
78:             * @param ex The exception that occured during processing the request. 
79:             * and which has already been processed by the first filters.
80:             * @param filters The whole array of filters to be applied before
81:             * actually continuing the process.
82:             * @param fidx The index in the above array of the filter being called.
83:             */
84:
85:            public ReplyInterface exceptionFilter(RequestInterface request,
86:                    ProtocolException ex, FilterInterface filters[], int fidx);
87:
88:            public OutputStream outputFilter(RequestInterface request,
89:                    ReplyInterface reply, OutputStream output);
90:
91:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.