Java Doc for Dispatcher.java in  » GIS » GeoServer » org » geoserver » ows » 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 » GIS » GeoServer » org.geoserver.ows 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geoserver.ows.Dispatcher

Dispatcher
public class Dispatcher extends AbstractController (Code)
Dispatches an http request to an open web service (OWS).

An OWS request contains three bits of information:

  1. The service being called
  2. The operation of the service to execute
  3. The version of the service ( optional )
Additional, an OWS request can contain an arbitray number of additional parameters.

An OWS request can be specified in two forms. The first form is known as "KVP" in which all the parameters come in the form of a set of key-value pairs. Commonly this type of request is made in an http "GET" request, the parameters being specified in the query string:

 http://www.xyz.com/geoserver?service=someService&request=someRequest&version=X.Y.Z¶m1=...¶m2=...
 
This type of request can also be made in a "POST" request in with a mime-type of "application/x-www-form-urlencoded".

The second form is known as "XML" in which all the parameters come in the form of an xml document. This type of request is made in an http "POST" request.

 
 <?xml version="1.0" encoding="UTF-8"?>
 <SomeRequest service="someService" version="X.Y.Z">
 <Param1>...</Param1>
 <Param2>...</Param2>
 ...
 </SomeRequest>
 
 

When a request is received, the service the version parameters are used to locate a service desciptor, an instance of Service . With the service descriptor, the request parameter is used to locate the operation of the service to call.


author:
   Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org

Inner Class :static class Request

Field Summary
 booleanciteCompliant
    
static  Loggerlogger
    
 OperationInterceptorsecurityInterceptor
    


Method Summary
 Operationdispatch(Request req, Service serviceDescriptor)
    
 voidexception(Throwable t, Service service, Request request)
    
 Objectexecute(Request req, Operation opDescriptor)
    
 KvpRequestReaderfindKvpRequestReader(Class type)
    
 ServiceStrategyfindOutputStrategy(HttpServletResponse response)
    
 ServicefindService(String id, String ver)
    
 XmlRequestReaderfindXmlReader(String namespace, String element, String ver)
    
public  OperationInterceptorgetSecurityInterceptor()
    
protected  ModelAndViewhandleRequestInternal(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
    
 Requestinit(Request request)
    
 BufferedInputStreaminput(File cache)
    
public  booleanisCiteCompliant()
    
 CollectionloadKvpRequestReaders()
    
 CollectionloadServices()
    
 CollectionloadXmlReaders()
    
 StringlookupRequestBeanProperty(Object requestBean, String property, boolean allowDefaultValues)
    
 Stringnormalize(String value)
    
 voidparseKVP(Request req)
    
 ObjectparseRequestKVP(Class type, Request request)
    
 ObjectparseRequestXML(Object requestBean, BufferedReader input, Request request)
    
protected  voidpreprocessRequest(HttpServletRequest request)
    
 MapreadOpContext(HttpServletRequest request)
    
 MapreadOpPost(BufferedReader input)
    
 BufferedReaderreader(HttpServletRequest httpRequest)
    
 voidresponse(Object result, Request req, Operation opDescriptor)
    
 Serviceservice(Request req)
    
public  voidsetCiteCompliant(boolean citeCompliant)
     Sets the flag to control wether the dispatcher is cite compliante.
public  voidsetSecurityInterceptor(OperationInterceptor interceptor)
    

Field Detail
citeCompliant
boolean citeCompliant(Code)
flag to control wether the dispatcher is cite compliant



logger
static Logger logger(Code)
Logging instance



securityInterceptor
OperationInterceptor securityInterceptor(Code)
The security interceptor to be used for authorization checks *





Method Detail
dispatch
Operation dispatch(Request req, Service serviceDescriptor) throws Throwable(Code)



exception
void exception(Throwable t, Service service, Request request)(Code)



execute
Object execute(Request req, Operation opDescriptor) throws Throwable(Code)



findKvpRequestReader
KvpRequestReader findKvpRequestReader(Class type)(Code)



findOutputStrategy
ServiceStrategy findOutputStrategy(HttpServletResponse response)(Code)



findService
Service findService(String id, String ver) throws ServiceException(Code)



findXmlReader
XmlRequestReader findXmlReader(String namespace, String element, String ver)(Code)



getSecurityInterceptor
public OperationInterceptor getSecurityInterceptor()(Code)
Allows setting up a security interceptor that will allow security checks around service invocations



handleRequestInternal
protected ModelAndView handleRequestInternal(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws Exception(Code)



init
Request init(Request request) throws ServiceException, IOException(Code)



input
BufferedInputStream input(File cache) throws IOException(Code)



isCiteCompliant
public boolean isCiteCompliant()(Code)



loadKvpRequestReaders
Collection loadKvpRequestReaders()(Code)



loadServices
Collection loadServices()(Code)



loadXmlReaders
Collection loadXmlReaders()(Code)



lookupRequestBeanProperty
String lookupRequestBeanProperty(Object requestBean, String property, boolean allowDefaultValues)(Code)



normalize
String normalize(String value)(Code)



parseKVP
void parseKVP(Request req) throws ServiceException(Code)



parseRequestKVP
Object parseRequestKVP(Class type, Request request) throws Exception(Code)



parseRequestXML
Object parseRequestXML(Object requestBean, BufferedReader input, Request request) throws Exception(Code)



preprocessRequest
protected void preprocessRequest(HttpServletRequest request) throws Exception(Code)



readOpContext
Map readOpContext(HttpServletRequest request)(Code)



readOpPost
Map readOpPost(BufferedReader input) throws Exception(Code)



reader
BufferedReader reader(HttpServletRequest httpRequest) throws IOException(Code)



response
void response(Object result, Request req, Operation opDescriptor) throws Throwable(Code)



service
Service service(Request req) throws Exception(Code)



setCiteCompliant
public void setCiteCompliant(boolean citeCompliant)(Code)
Sets the flag to control wether the dispatcher is cite compliante.

If set to true, the dispatcher with throw exceptions when it encounters something that is not 100% compliant with CITE standards. An example would be a request which specifies the servce in the context path: '.../geoserver/wfs?request=...' and not with the kvp '&service=wfs'.


Parameters:
  citeCompliant - true to set compliance,false to unset it.



setSecurityInterceptor
public void setSecurityInterceptor(OperationInterceptor interceptor)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.