Last updated at 1:24 pm UTC on 29 October 2018
Part of the HttpView web framework.
- A HVRootView object is a view object that is plugged into Komanche.
- The HVRootView object holds the model and
- it also is the first entry point of a web application.
- The method #process: is called with a HttpRequest as an argument and
- Komanche expects a HttpResponse being returned.
The root view typically
- instantiates a transient view object on the model,
- puts the request into the view and
- then sends #dispatch to it.
Eventually it will return a result object that is transformed into an HttpResponse.
Simple applications typically don't subclass HVRootView, instead an instance is created when the application is started, see for example HVHttpView class>>startOn:.
The HVRootView object is not instantiated for every request - it represents the web application itself that is plugged into Komanche - so it must be written Process safe.