test_class.file: everrest-core/src/test/java/org/everrest/core/impl/ResponseImplTest.java
test_class.identifier: ResponseImplTest
test_case.body: @Test
      public void parsesSetCookieHeader() throws Exception {
          MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();
  
          headers.put(SET_COOKIE, newArrayList("name=andrew",
                                               "company=codenvy;version=1;paTh=/path;Domain=codenvy.com;comment=\"comment\";max-age=300;HttpOnly;secure"));
          ResponseImpl response = new ResponseImpl(200, "foo", null, headers);
          Map<String, NewCookie> expectedCookies = ImmutableMap.of("name", new NewCookie("name", "andrew"),
                                                                   "company", new NewCookie("company", "codenvy", "/path", "codenvy.com", 1, "comment", 300, null, true, true));
  
          assertEquals(expectedCookies, response.getCookies());
      }
test_case.class_method_signature: ResponseImplTest.parsesSetCookieHeader()
test_case.full_signature: @Test public void parsesSetCookieHeader()
test_case.identifier: parsesSetCookieHeader
test_case.invocations: put newArrayList of assertEquals getCookies
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parsesSetCookieHeader()
focal_class.declarator: status
focal_class.modifier: private final
focal_class.original_string: private final int status;
focal_class.type: int
focal_class.var_name: status
focal_class.declarator: entity
focal_class.modifier: private final
focal_class.original_string: private final Object entity;
focal_class.type: Object
focal_class.var_name: entity
focal_class.declarator: entityAnnotations
focal_class.modifier: private
focal_class.original_string: private Annotation[] entityAnnotations;
focal_class.type: Annotation[]
focal_class.var_name: entityAnnotations
focal_class.declarator: headers
focal_class.modifier: private final
focal_class.original_string: private final MultivaluedMap<String, Object> headers;
focal_class.type: MultivaluedMap<String, Object>
focal_class.var_name: headers
focal_class.declarator: closed
focal_class.modifier: private
focal_class.original_string: private boolean closed;
focal_class.type: boolean
focal_class.var_name: closed
focal_class.file: everrest-core/src/main/java/org/everrest/core/impl/ResponseImpl.java
focal_class.identifier: ResponseImpl
focal_class.class_method_signature: ResponseImpl.ResponseImpl(int status, Object entity, Annotation[] entityAnnotations, MultivaluedMap<String, Object> headers)
focal_class.full_signature: protected  ResponseImpl(int status, Object entity, Annotation[] entityAnnotations, MultivaluedMap<String, Object> headers)
focal_class.identifier: ResponseImpl
focal_class.modifiers: protected
focal_class.parameters: (int status, Object entity, Annotation[] entityAnnotations, MultivaluedMap<String, Object> headers)
focal_class.signature:  ResponseImpl(int status, Object entity, Annotation[] entityAnnotations, MultivaluedMap<String, Object> headers)
focal_class.class_method_signature: ResponseImpl.getEntity()
focal_class.full_signature: @Override public Object getEntity()
focal_class.identifier: getEntity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object getEntity()
focal_class.class_method_signature: ResponseImpl.getEntityAnnotations()
focal_class.full_signature: public Annotation[] getEntityAnnotations()
focal_class.identifier: getEntityAnnotations
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Annotation[]
focal_class.signature: Annotation[] getEntityAnnotations()
focal_class.class_method_signature: ResponseImpl.readEntity(Class<T> entityType)
focal_class.full_signature: @Override public T readEntity(Class<T> entityType)
focal_class.identifier: readEntity
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> entityType)
focal_class.return: T
focal_class.signature: T readEntity(Class<T> entityType)
focal_class.class_method_signature: ResponseImpl.readEntity(GenericType<T> entityType)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public T readEntity(GenericType<T> entityType)
focal_class.identifier: readEntity
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (GenericType<T> entityType)
focal_class.return: T
focal_class.signature: T readEntity(GenericType<T> entityType)
focal_class.class_method_signature: ResponseImpl.readEntity(Class<T> entityType, Annotation[] annotations)
focal_class.full_signature: @Override public T readEntity(Class<T> entityType, Annotation[] annotations)
focal_class.identifier: readEntity
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> entityType, Annotation[] annotations)
focal_class.return: T
focal_class.signature: T readEntity(Class<T> entityType, Annotation[] annotations)
focal_class.class_method_signature: ResponseImpl.readEntity(GenericType<T> entityType, Annotation[] annotations)
focal_class.full_signature: @SuppressWarnings("unchecked") @Override public T readEntity(GenericType<T> entityType, Annotation[] annotations)
focal_class.identifier: readEntity
focal_class.modifiers: @SuppressWarnings("unchecked") @Override public
focal_class.parameters: (GenericType<T> entityType, Annotation[] annotations)
focal_class.return: T
focal_class.signature: T readEntity(GenericType<T> entityType, Annotation[] annotations)
focal_class.class_method_signature: ResponseImpl.doReadEntity(Class<T> type, Type genericType, Annotation[] annotations)
focal_class.full_signature: private T doReadEntity(Class<T> type, Type genericType, Annotation[] annotations)
focal_class.identifier: doReadEntity
focal_class.modifiers: private
focal_class.parameters: (Class<T> type, Type genericType, Annotation[] annotations)
focal_class.return: T
focal_class.signature: T doReadEntity(Class<T> type, Type genericType, Annotation[] annotations)
focal_class.class_method_signature: ResponseImpl.hasEntity()
focal_class.full_signature: @Override public boolean hasEntity()
focal_class.identifier: hasEntity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean hasEntity()
focal_class.class_method_signature: ResponseImpl.bufferEntity()
focal_class.full_signature: @Override public boolean bufferEntity()
focal_class.identifier: bufferEntity
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean bufferEntity()
focal_class.class_method_signature: ResponseImpl.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_class.class_method_signature: ResponseImpl.isClosed()
focal_class.full_signature: public boolean isClosed()
focal_class.identifier: isClosed
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_class.class_method_signature: ResponseImpl.getMediaType()
focal_class.full_signature: @Override public MediaType getMediaType()
focal_class.identifier: getMediaType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MediaType
focal_class.signature: MediaType getMediaType()
focal_class.class_method_signature: ResponseImpl.getLanguage()
focal_class.full_signature: @Override public Locale getLanguage()
focal_class.identifier: getLanguage
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Locale
focal_class.signature: Locale getLanguage()
focal_class.class_method_signature: ResponseImpl.getLength()
focal_class.full_signature: @Override public int getLength()
focal_class.identifier: getLength
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLength()
focal_class.class_method_signature: ResponseImpl.getAllowedMethods()
focal_class.full_signature: @Override public Set<String> getAllowedMethods()
focal_class.identifier: getAllowedMethods
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getAllowedMethods()
focal_class.class_method_signature: ResponseImpl.getCookies()
focal_class.full_signature: @Override public Map<String, NewCookie> getCookies()
focal_class.identifier: getCookies
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, NewCookie>
focal_class.signature: Map<String, NewCookie> getCookies()
focal_class.class_method_signature: ResponseImpl.getEntityTag()
focal_class.full_signature: @Override public EntityTag getEntityTag()
focal_class.identifier: getEntityTag
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: EntityTag
focal_class.signature: EntityTag getEntityTag()
focal_class.class_method_signature: ResponseImpl.getDate()
focal_class.full_signature: @Override public Date getDate()
focal_class.identifier: getDate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getDate()
focal_class.class_method_signature: ResponseImpl.getLastModified()
focal_class.full_signature: @Override public Date getLastModified()
focal_class.identifier: getLastModified
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getLastModified()
focal_class.class_method_signature: ResponseImpl.getDateHeader(String name)
focal_class.full_signature: private Date getDateHeader(String name)
focal_class.identifier: getDateHeader
focal_class.modifiers: private
focal_class.parameters: (String name)
focal_class.return: Date
focal_class.signature: Date getDateHeader(String name)
focal_class.class_method_signature: ResponseImpl.getLocation()
focal_class.full_signature: @Override public URI getLocation()
focal_class.identifier: getLocation
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: URI
focal_class.signature: URI getLocation()
focal_class.class_method_signature: ResponseImpl.getLinks()
focal_class.full_signature: @Override public Set<Link> getLinks()
focal_class.identifier: getLinks
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<Link>
focal_class.signature: Set<Link> getLinks()
focal_class.class_method_signature: ResponseImpl.hasLink(String relation)
focal_class.full_signature: @Override public boolean hasLink(String relation)
focal_class.identifier: hasLink
focal_class.modifiers: @Override public
focal_class.parameters: (String relation)
focal_class.return: boolean
focal_class.signature: boolean hasLink(String relation)
focal_class.class_method_signature: ResponseImpl.getLink(String relation)
focal_class.full_signature: @Override public Link getLink(String relation)
focal_class.identifier: getLink
focal_class.modifiers: @Override public
focal_class.parameters: (String relation)
focal_class.return: Link
focal_class.signature: Link getLink(String relation)
focal_class.class_method_signature: ResponseImpl.getLinkBuilder(String relation)
focal_class.full_signature: @Override public Link.Builder getLinkBuilder(String relation)
focal_class.identifier: getLinkBuilder
focal_class.modifiers: @Override public
focal_class.parameters: (String relation)
focal_class.return: Link.Builder
focal_class.signature: Link.Builder getLinkBuilder(String relation)
focal_class.class_method_signature: ResponseImpl.getMetadata()
focal_class.full_signature: @Override public MultivaluedMap<String, Object> getMetadata()
focal_class.identifier: getMetadata
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MultivaluedMap<String, Object>
focal_class.signature: MultivaluedMap<String, Object> getMetadata()
focal_class.class_method_signature: ResponseImpl.getStringHeaders()
focal_class.full_signature: @Override public MultivaluedMap<String, String> getStringHeaders()
focal_class.identifier: getStringHeaders
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MultivaluedMap<String, String>
focal_class.signature: MultivaluedMap<String, String> getStringHeaders()
focal_class.class_method_signature: ResponseImpl.getHeaderString(String name)
focal_class.full_signature: @Override public String getHeaderString(String name)
focal_class.identifier: getHeaderString
focal_class.modifiers: @Override public
focal_class.parameters: (String name)
focal_class.return: String
focal_class.signature: String getHeaderString(String name)
focal_class.class_method_signature: ResponseImpl.getStatus()
focal_class.full_signature: @Override public int getStatus()
focal_class.identifier: getStatus
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getStatus()
focal_class.class_method_signature: ResponseImpl.getStatusInfo()
focal_class.full_signature: @Override public StatusType getStatusInfo()
focal_class.identifier: getStatusInfo
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: StatusType
focal_class.signature: StatusType getStatusInfo()
focal_class.class_method_signature: ResponseImpl.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.superclass: extends Response
focal_method.body: @Override
      public Map<String, NewCookie> getCookies() {
          List<Object> cookieHeaders = getMetadata().get(SET_COOKIE);
          if (cookieHeaders == null) {
              return Collections.emptyMap();
          }
          Map<String, NewCookie> cookies = new HashMap<>();
          for (Object cookieHeader : cookieHeaders) {
              if (cookieHeader instanceof NewCookie) {
                  NewCookie newCookie = (NewCookie)cookieHeader;
                  cookies.put(newCookie.getName(), newCookie);
              } else if (cookieHeader != null) {
                  NewCookie newCookie = NewCookie.valueOf(getHeaderAsString(cookieHeader));
                  if (newCookie != null) {
                      cookies.put(newCookie.getName(), newCookie);
                  }
              }
          }
  
          return cookies;
      }
focal_method.class_method_signature: ResponseImpl.getCookies()
focal_method.full_signature: @Override public Map<String, NewCookie> getCookies()
focal_method.identifier: getCookies
focal_method.invocations: get getMetadata emptyMap put getName valueOf getHeaderAsString put getName
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Map<String, NewCookie>
focal_method.signature: Map<String, NewCookie> getCookies()