org.abstracthorizon.danube.mvc
Class MVCConnectionHandler

java.lang.Object
  extended by org.abstracthorizon.danube.mvc.MVCConnectionHandler
All Implemented Interfaces:
ConnectionHandler
Direct Known Subclasses:
HTTPMVCConnectionHandler

public class MVCConnectionHandler
extends Object
implements ConnectionHandler

Tihs class is driver of MVC. It invokes action that returns view (and modem) and then view renderer is called with that invformation.

Author:
Daniel Sendula

Field Summary
protected  Controller controller
          Action manager
protected  View view
          View renderer
 
Constructor Summary
MVCConnectionHandler()
          Constructor
 
Method Summary
 Controller getController()
          Returns action manager
 View getView()
          Returns view renderer
 void handleConnection(Connection connection)
          This method calls action manager to obtain view and model and then view renderer with that information
 void setController(Controller controller)
          Sets action manager
 void setView(View view)
          Sets view renderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected Controller controller
Action manager


view

protected View view
View renderer

Constructor Detail

MVCConnectionHandler

public MVCConnectionHandler()
Constructor

Method Detail

handleConnection

public void handleConnection(Connection connection)
This method calls action manager to obtain view and model and then view renderer with that information

Specified by:
handleConnection in interface ConnectionHandler
Parameters:
connection - connection
Throws:
IOException - when there are problems with rendering the view

getController

public Controller getController()
Returns action manager

Returns:
action manager

setController

public void setController(Controller controller)
Sets action manager

Parameters:
controller - action manager

getView

public View getView()
Returns view renderer

Returns:
view renderer

setView

public void setView(View view)
Sets view renderer

Parameters:
view - view renderer


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.