Class NoOpRouter

java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.routing.NoOpRouter
All Implemented Interfaces:
Router

public class NoOpRouter extends AbstractRouter implements Router
This router implementation does mostly nothing. That means that it sends the request to the pre-configured service without ever modifying the serviceId. The main purpose of this router is testing.
Version:
$Id: $Id
Author:
lrosenberg.
  • Constructor Details

    • NoOpRouter

      public NoOpRouter()
  • Method Details

    • getServiceIdForCall

      public String getServiceIdForCall(ClientSideCallContext context)
      Returns the serviceId for this particular call to route to.
      Specified by:
      getServiceIdForCall in interface Router
      Parameters:
      context - context of the call with all call related data.
      Returns:
      a String object.
    • customize

      public void customize(String parameter)
      This is old style customize. It is called by the 'new' customize.
      Overrides:
      customize in class AbstractRouter
      Parameters:
      parameter - a String object.