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


01:        // RequestFilter.java
02:        // $Id: RequestFilter.java,v 1.7 1998/01/22 14:36:09 bmahe 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.www.protocol.http;
07:
08:        /**
09:         * The request filter interface.
10:         * Filters allow application wide request enhancement before they are being
11:         * actually emited on the wire. 
12:         * <p>Once registered to the HttpManager, a request filter will be invoked
13:         * <em>before</em> the request is actualy sent to the wire, and right
14:         * <em>after</em> the reply headers are available, <em>only</em> if its
15:         * current scope matches the request URL.
16:         */
17:
18:        public interface RequestFilter {
19:
20:            /**
21:             * The request pre-processing hook.
22:             * Before each request is launched, all filters will be called back through
23:             * this method. They will generally set up additional request header
24:             * fields to enhance the request.
25:             * @param request The request that is about to be launched.
26:             * @return An instance of Reply if the filter could handle the request,
27:             * or <strong>null</strong> if processing should continue normally.
28:             * @exception HttpException If the filter is supposed to fulfill the
29:             * request, but some error happened during that processing.
30:             */
31:
32:            public Reply ingoingFilter(Request request) throws HttpException;
33:
34:            /**
35:             * The request post-processing hook.
36:             * After each request has been replied to by the target server (be it a 
37:             * proxy or the actual origin server), each filter's outgoingFilter
38:             * method is called.
39:             * <p>It gets the original request, and the actual reply as a parameter,
40:             * and should return whatever reply it wants the caller to get.
41:             * @param request The original (handled) request.
42:             * @param reply The reply, as emited by the target server, or constructed
43:             * by some other filter.
44:             * @exception HttpException If the reply emitted by the server is not
45:             * a valid HTTP reply.
46:             */
47:
48:            public Reply outgoingFilter(Request request, Reply reply)
49:                    throws HttpException;
50:
51:            /**
52:             * An exception occured while talking to target server.
53:             * This method is triggered by the HttpManager, when the target server
54:             * (which can be a proxy for that request) was not reachable, or some
55:             * network error occured while emitting the request or reading the reply
56:             * headers.
57:             * @param request The request whose processing triggered the exception.
58:             * @param ex The exception that was triggered.
59:             * @return A boolean, <strong>true</strong> if that filter did influence
60:             * the target server used to fulfill the request, and it has fixed the 
61:             * problem in such a way that the request should be retried.
62:             */
63:
64:            public boolean exceptionFilter(Request request, HttpException ex);
65:
66:            /** 
67:             * Synchronized any pending state into stable storage.
68:             * If the filter maintains some in-memory cached state, this method
69:             * should ensure that cached data are saved to stable storage.
70:             */
71:
72:            public void sync();
73:
74:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.