Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.server.console.war.services
Class ConsoleController

java.lang.Object
  extended by eu.esdihumboldt.hale.server.console.war.services.ConsoleController

@Controller
@RequestMapping
public class ConsoleController
extends Object

A REST service offering access to the OSGI console. The service accepts GET requests containing the command and returns the command's result.

Author:
Michel Kraemer

Constructor Summary
ConsoleController()
           
 
Method Summary
 void destroy()
          Destroys this bean.
 void get(String command, javax.servlet.http.HttpServletResponse response)
          Handles OSGi console commands
 void init()
          Initializes this bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleController

public ConsoleController()
Method Detail

init

public void init()
          throws IOException
Initializes this bean. Creates the console session

Throws:
IOException - if the initial prompt could not be read

destroy

public void destroy()
Destroys this bean. Closes the console session


get

@RequestMapping(value="/{command}")
public void get(@PathVariable
                               String command,
                               javax.servlet.http.HttpServletResponse response)
         throws IOException
Handles OSGi console commands

Parameters:
command - the command
response - used to return the command's results
Throws:
IOException - if the command could not be executed

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d