info.magnolia.cms.servlets
Interface MVCServletHandler

All Known Implementing Classes:
CommandBasedMVCServletHandler, MVCServletHandlerImpl

public interface MVCServletHandler

This Handler is used in the MVCServlet.


Field Summary
static String VIEW_NOTHING
           
 
Method Summary
 String execute(String command)
          Execute the command.
 String getCommand()
          Returns the name of the command we want to execute.
 String getName()
          The name of the handler.
 void init()
          Called after instantiating.
 void renderHtml(String view)
          Render the tree depending on the view name.
 

Field Detail

VIEW_NOTHING

static final String VIEW_NOTHING
See Also:
Constant Field Values
Method Detail

getCommand

String getCommand()
Returns the name of the command we want to execute.

Returns:
name of the command

execute

String execute(String command)
Execute the command. Returns the view name.

Returns:
the name of the view to show (used in renderHtml)

renderHtml

void renderHtml(String view)
                throws IOException
Render the tree depending on the view name.

Throws:
IOException

getName

String getName()
The name of the handler.


init

void init()
          throws Exception
Called after instantiating.

Throws:
Exception


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.