Class RequestHandlerImpl

java.lang.Object
org.exoplatform.services.rest.impl.RequestHandlerImpl
All Implemented Interfaces:
RequestHandler, org.picocontainer.Startable

public final class RequestHandlerImpl extends Object implements RequestHandler, org.picocontainer.Startable
Version:
$Id: $
Author:
Andrey Parfonov
  • Constructor Details

  • Method Details

    • getProperty

      public static final String getProperty(String name)
    • setProperty

      public static final void setProperty(String name, String value)
    • handleRequest

      public void handleRequest(GenericContainerRequest request, GenericContainerResponse response) throws Exception
      Handle the HTTP request by dispatching request to appropriate resource. If no one appropriate resource found then error response will be produced.
      Specified by:
      handleRequest in interface RequestHandler
      Parameters:
      request - HTTP request
      response - HTTP response
      Throws:
      Exception - if any error occurs
    • start

      public void start()
      Specified by:
      start in interface org.picocontainer.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.picocontainer.Startable
    • init

      public void init()
      Startup initialization.
    • addPlugin

      public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
      Processing ComponentPlugin for injection external components.
      Parameters:
      plugin - See ComponentPlugin