test_class.declarator: httpMethod     = "POST"
test_class.modifier: private
test_class.original_string: private String                         httpMethod     = "POST";
test_class.type: String
test_class.var_name: httpMethod
test_class.declarator: requestUri     = URI.create("http://localhost:8080/servlet/a/b/c")
test_class.modifier: private
test_class.original_string: private URI                            requestUri     = URI.create("http://localhost:8080/servlet/a/b/c");
test_class.type: URI
test_class.var_name: requestUri
test_class.declarator: baseUri        = URI.create("http://localhost:8080/servlet")
test_class.modifier: private
test_class.original_string: private URI                            baseUri        = URI.create("http://localhost:8080/servlet");
test_class.type: URI
test_class.var_name: baseUri
test_class.declarator: requestHeaders = new MultivaluedHashMap<>()
test_class.modifier: private
test_class.original_string: private MultivaluedMap<String, String> requestHeaders = new MultivaluedHashMap<>();
test_class.type: MultivaluedMap<String, String>
test_class.var_name: requestHeaders
test_class.declarator: requestHandler
test_class.modifier: private
test_class.original_string: private RequestHandler        requestHandler;
test_class.type: RequestHandler
test_class.var_name: requestHandler
test_class.declarator: dependencySupplier
test_class.modifier: private
test_class.original_string: private DependencySupplier    dependencySupplier;
test_class.type: DependencySupplier
test_class.var_name: dependencySupplier
test_class.declarator: configuration
test_class.modifier: private
test_class.original_string: private EverrestConfiguration configuration;
test_class.type: EverrestConfiguration
test_class.var_name: configuration
test_class.declarator: everrestProcessor
test_class.modifier: private
test_class.original_string: private EverrestProcessor everrestProcessor;
test_class.type: EverrestProcessor
test_class.var_name: everrestProcessor
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/EverrestProcessorTest.java
test_class.identifier: EverrestProcessorTest
test_case.body: @Test
      public void overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet() throws Exception {
          when(configuration.isHttpMethodOverride()).thenReturn(true);
          requestHeaders.putSingle(X_HTTP_METHOD_OVERRIDE, "PUT");
          ContainerRequest containerRequest = mockContainerRequest();
          ContainerResponse containerResponse = mockContainerResponse();
          EnvironmentContext environmentContext = mock(EnvironmentContext.class);
  
          everrestProcessor.process(containerRequest, containerResponse, environmentContext);
  
          verify(containerRequest).setMethod("PUT");
      }
test_case.class_method_signature: EverrestProcessorTest.overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet()
test_case.full_signature: @Test public void overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet()
test_case.identifier: overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet
test_case.invocations: thenReturn when isHttpMethodOverride putSingle mockContainerRequest mockContainerResponse mock process setMethod verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet()
focal_class.declarator: LOG = LoggerFactory.getLogger(EverrestProcessor.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(EverrestProcessor.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: dependencySupplier
focal_class.modifier: private final
focal_class.original_string: private final DependencySupplier    dependencySupplier;
focal_class.type: DependencySupplier
focal_class.var_name: dependencySupplier
focal_class.declarator: requestHandler
focal_class.modifier: private final
focal_class.original_string: private final RequestHandler        requestHandler;
focal_class.type: RequestHandler
focal_class.var_name: requestHandler
focal_class.declarator: everrestApplication
focal_class.modifier: private final
focal_class.original_string: private final EverrestApplication   everrestApplication;
focal_class.type: EverrestApplication
focal_class.var_name: everrestApplication
focal_class.declarator: configuration
focal_class.modifier: private final
focal_class.original_string: private final EverrestConfiguration configuration;
focal_class.type: EverrestConfiguration
focal_class.var_name: configuration
focal_class.declarator: methodInvokerDecoratorFactory
focal_class.modifier: private final
focal_class.original_string: private final MethodInvokerDecoratorFactory methodInvokerDecoratorFactory;
focal_class.type: MethodInvokerDecoratorFactory
focal_class.var_name: methodInvokerDecoratorFactory
focal_class.declarator: properties
focal_class.modifier: private final
focal_class.original_string: private final Map<String, String> properties;
focal_class.type: Map<String, String>
focal_class.var_name: properties
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/EverrestProcessor.java
focal_class.identifier: EverrestProcessor
focal_class.interfaces: implements Lifecycle
focal_class.class_method_signature: EverrestProcessor.EverrestProcessor(DependencySupplier dependencySupplier, RequestHandler requestHandler)
focal_class.full_signature: public  EverrestProcessor(DependencySupplier dependencySupplier, RequestHandler requestHandler)
focal_class.identifier: EverrestProcessor
focal_class.modifiers: public
focal_class.parameters: (DependencySupplier dependencySupplier, RequestHandler requestHandler)
focal_class.signature:  EverrestProcessor(DependencySupplier dependencySupplier, RequestHandler requestHandler)
focal_class.class_method_signature: EverrestProcessor.EverrestProcessor(EverrestConfiguration configuration, DependencySupplier dependencySupplier, RequestHandler requestHandler, Application application)
focal_class.full_signature: public  EverrestProcessor(EverrestConfiguration configuration, DependencySupplier dependencySupplier, RequestHandler requestHandler, Application application)
focal_class.identifier: EverrestProcessor
focal_class.modifiers: public
focal_class.parameters: (EverrestConfiguration configuration, DependencySupplier dependencySupplier, RequestHandler requestHandler, Application application)
focal_class.signature:  EverrestProcessor(EverrestConfiguration configuration, DependencySupplier dependencySupplier, RequestHandler requestHandler, Application application)
focal_class.class_method_signature: EverrestProcessor.createMethodInvokerDecoratorFactory(EverrestConfiguration configuration)
focal_class.full_signature: private MethodInvokerDecoratorFactory createMethodInvokerDecoratorFactory(EverrestConfiguration configuration)
focal_class.identifier: createMethodInvokerDecoratorFactory
focal_class.modifiers: private
focal_class.parameters: (EverrestConfiguration configuration)
focal_class.return: MethodInvokerDecoratorFactory
focal_class.signature: MethodInvokerDecoratorFactory createMethodInvokerDecoratorFactory(EverrestConfiguration configuration)
focal_class.class_method_signature: EverrestProcessor.getProperty(String name)
focal_class.full_signature: public String getProperty(String name)
focal_class.identifier: getProperty
focal_class.modifiers: public
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getProperty(String name)
focal_class.class_method_signature: EverrestProcessor.setProperty(String name, String value)
focal_class.full_signature: public void setProperty(String name, String value)
focal_class.identifier: setProperty
focal_class.modifiers: public
focal_class.parameters: (String name, String value)
focal_class.return: void
focal_class.signature: void setProperty(String name, String value)
focal_class.class_method_signature: EverrestProcessor.process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_class.full_signature: public void process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_class.return: void
focal_class.signature: void process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_class.class_method_signature: EverrestProcessor.normalizeRequestUri(GenericContainerRequest request)
focal_class.full_signature: private void normalizeRequestUri(GenericContainerRequest request)
focal_class.identifier: normalizeRequestUri
focal_class.modifiers: private
focal_class.parameters: (GenericContainerRequest request)
focal_class.return: void
focal_class.signature: void normalizeRequestUri(GenericContainerRequest request)
focal_class.class_method_signature: EverrestProcessor.overrideHttpMethod(GenericContainerRequest request)
focal_class.full_signature: private void overrideHttpMethod(GenericContainerRequest request)
focal_class.identifier: overrideHttpMethod
focal_class.modifiers: private
focal_class.parameters: (GenericContainerRequest request)
focal_class.return: void
focal_class.signature: void overrideHttpMethod(GenericContainerRequest request)
focal_class.class_method_signature: EverrestProcessor.addApplication(Application application)
focal_class.full_signature: public void addApplication(Application application)
focal_class.identifier: addApplication
focal_class.modifiers: public
focal_class.parameters: (Application application)
focal_class.return: void
focal_class.signature: void addApplication(Application application)
focal_class.class_method_signature: EverrestProcessor.start()
focal_class.full_signature: @Override public void start()
focal_class.identifier: start
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void start()
focal_class.class_method_signature: EverrestProcessor.stop()
focal_class.full_signature: @Override public void stop()
focal_class.identifier: stop
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void stop()
focal_class.class_method_signature: EverrestProcessor.getProviders()
focal_class.full_signature: public ProviderBinder getProviders()
focal_class.identifier: getProviders
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ProviderBinder
focal_class.signature: ProviderBinder getProviders()
focal_class.class_method_signature: EverrestProcessor.getResources()
focal_class.full_signature: public ResourceBinder getResources()
focal_class.identifier: getResources
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ResourceBinder
focal_class.signature: ResourceBinder getResources()
focal_class.class_method_signature: EverrestProcessor.getApplication()
focal_class.full_signature: public EverrestApplication getApplication()
focal_class.identifier: getApplication
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EverrestApplication
focal_class.signature: EverrestApplication getApplication()
focal_class.class_method_signature: EverrestProcessor.getDependencySupplier()
focal_class.full_signature: public DependencySupplier getDependencySupplier()
focal_class.identifier: getDependencySupplier
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: DependencySupplier
focal_class.signature: DependencySupplier getDependencySupplier()
focal_method.body: public void process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
              throws IOException {
  
          EnvironmentContext.setCurrent(environmentContext);
  
          ApplicationContext context = anApplicationContext()
                  .withRequest(request)
                  .withResponse(response)
                  .withProviders(requestHandler.getProviders())
                  .withProperties(properties)
                  .withApplication(everrestApplication)
                  .withConfiguration(new EverrestConfiguration(configuration))
                  .withDependencySupplier(dependencySupplier)
                  .withMethodInvokerDecoratorFactory(methodInvokerDecoratorFactory)
                  .build();
          try {
              context.start();
              ApplicationContext.setCurrent(context);
              if (configuration.isNormalizeUri()) {
                  normalizeRequestUri(request);
              }
              if (configuration.isHttpMethodOverride()) {
                  overrideHttpMethod(request);
              }
              requestHandler.handleRequest(request, response);
          } finally {
              try {
                  context.stop();
              } finally {
                  ApplicationContext.setCurrent(null);
              }
              EnvironmentContext.setCurrent(null);
          }
      }
focal_method.class_method_signature: EverrestProcessor.process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_method.full_signature: public void process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_method.identifier: process
focal_method.invocations: setCurrent build withMethodInvokerDecoratorFactory withDependencySupplier withConfiguration withApplication withProperties withProviders withResponse withRequest anApplicationContext getProviders start setCurrent isNormalizeUri normalizeRequestUri isHttpMethodOverride overrideHttpMethod handleRequest stop setCurrent setCurrent
focal_method.modifiers: public
focal_method.parameters: (GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)
focal_method.return: void
focal_method.signature: void process(GenericContainerRequest request, GenericContainerResponse response, EnvironmentContext environmentContext)