test_class.declarator: cookie1 = new Cookie("cookie1", "value1")
test_class.modifier: private final
test_class.original_string: private final Cookie cookie1 = new Cookie("cookie1", "value1");
test_class.type: Cookie
test_class.var_name: cookie1
test_class.declarator: cookie2 = new Cookie("cookie2", "value2")
test_class.modifier: private final
test_class.original_string: private final Cookie cookie2 = new Cookie("cookie2", "value2");
test_class.type: Cookie
test_class.var_name: cookie2
test_class.declarator: applicationContext
test_class.modifier: private
test_class.original_string: private ApplicationContext applicationContext;
test_class.type: ApplicationContext
test_class.var_name: applicationContext
test_class.declarator: cookieParam
test_class.modifier: private
test_class.original_string: private CookieParam        cookieParam;
test_class.type: CookieParam
test_class.var_name: cookieParam
test_class.declarator: parameter
test_class.modifier: private
test_class.original_string: private Parameter          parameter;
test_class.type: Parameter
test_class.var_name: parameter
test_class.declarator: typeProducer
test_class.modifier: private
test_class.original_string: private TypeProducer       typeProducer;
test_class.type: TypeProducer
test_class.var_name: typeProducer
test_class.declarator: cookieParameterResolver
test_class.modifier: private
test_class.original_string: private CookieParameterResolver cookieParameterResolver;
test_class.type: CookieParameterResolver
test_class.var_name: cookieParameterResolver
test_class.file: everrest-core/src/test/java/org/everrest/core/impl/method/CookieParameterResolverTest.java
test_class.identifier: CookieParameterResolverTest
test_case.body: @Test
      public void retrievesCookieFromRequest() throws Exception {
          when(parameter.getParameterClass()).thenReturn((Class)Cookie.class);
  
          Object resolvedCookie = cookieParameterResolver.resolve(parameter, applicationContext);
  
          assertSame(cookie1, resolvedCookie);
      }
test_case.class_method_signature: CookieParameterResolverTest.retrievesCookieFromRequest()
test_case.full_signature: @Test public void retrievesCookieFromRequest()
test_case.identifier: retrievesCookieFromRequest
test_case.invocations: thenReturn when getParameterClass resolve assertSame
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void retrievesCookieFromRequest()
focal_class.declarator: cookieParam
focal_class.modifier: private final
focal_class.original_string: private final CookieParam         cookieParam;
focal_class.type: CookieParam
focal_class.var_name: cookieParam
focal_class.declarator: typeProducerFactory
focal_class.modifier: private final
focal_class.original_string: private final TypeProducerFactory typeProducerFactory;
focal_class.type: TypeProducerFactory
focal_class.var_name: typeProducerFactory
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/method/CookieParameterResolver.java
focal_class.identifier: CookieParameterResolver
focal_class.interfaces: implements ParameterResolver<CookieParam>
focal_class.class_method_signature: CookieParameterResolver.CookieParameterResolver(CookieParam cookieParam, TypeProducerFactory typeProducerFactory)
focal_class.full_signature:   CookieParameterResolver(CookieParam cookieParam, TypeProducerFactory typeProducerFactory)
focal_class.identifier: CookieParameterResolver
focal_class.parameters: (CookieParam cookieParam, TypeProducerFactory typeProducerFactory)
focal_class.signature:  CookieParameterResolver(CookieParam cookieParam, TypeProducerFactory typeProducerFactory)
focal_class.class_method_signature: CookieParameterResolver.resolve(org.everrest.core.Parameter parameter, ApplicationContext context)
focal_class.full_signature: @Override public Object resolve(org.everrest.core.Parameter parameter, ApplicationContext context)
focal_class.identifier: resolve
focal_class.modifiers: @Override public
focal_class.parameters: (org.everrest.core.Parameter parameter, ApplicationContext context)
focal_class.return: Object
focal_class.signature: Object resolve(org.everrest.core.Parameter parameter, ApplicationContext context)
focal_method.body: @Override
      public Object resolve(org.everrest.core.Parameter parameter, ApplicationContext context) throws Exception {
          String param = cookieParam.value();
          if (Cookie.class.isAssignableFrom(parameter.getParameterClass())) {
              Cookie cookie = context.getHttpHeaders().getCookies().get(param);
              if (cookie == null && parameter.getDefaultValue() != null) {
                  cookie = Cookie.valueOf(parameter.getDefaultValue());
              }
              return cookie;
          } else {
              TypeProducer typeProducer = typeProducerFactory.createTypeProducer(parameter.getParameterClass(), parameter.getGenericType());
              MultivaluedMap<String, String> cookieValues = new MultivaluedMapImpl();
              for (Map.Entry<String, Cookie> entry : context.getHttpHeaders().getCookies().entrySet()) {
                  cookieValues.putSingle(entry.getKey(), entry.getValue().getValue());
              }
              return typeProducer.createValue(param, cookieValues, parameter.getDefaultValue());
          }
      }
focal_method.class_method_signature: CookieParameterResolver.resolve(org.everrest.core.Parameter parameter, ApplicationContext context)
focal_method.full_signature: @Override public Object resolve(org.everrest.core.Parameter parameter, ApplicationContext context)
focal_method.identifier: resolve
focal_method.invocations: value isAssignableFrom getParameterClass get getCookies getHttpHeaders getDefaultValue valueOf getDefaultValue createTypeProducer getParameterClass getGenericType entrySet getCookies getHttpHeaders putSingle getKey getValue getValue createValue getDefaultValue
focal_method.modifiers: @Override public
focal_method.parameters: (org.everrest.core.Parameter parameter, ApplicationContext context)
focal_method.return: Object
focal_method.signature: Object resolve(org.everrest.core.Parameter parameter, ApplicationContext context)