Example usage for java.util LinkedList LinkedList

List of usage examples for java.util LinkedList LinkedList

Introduction

In this page you can find the example usage for java.util LinkedList LinkedList.

Prototype

public LinkedList() 

Source Link

Document

Constructs an empty list.

Usage

From source file:de.zib.gndms.gndmc.utils.DefaultResponseExtractor.java

public static List<String> getCookies(final HttpHeaders headers) {
    final List<String> cookies = new LinkedList<String>();

    for (String header : headers.keySet()) {
        if ("Set-Cookie".equals(header)) {
            for (String value : headers.get(header)) {
                cookies.add(value);//from   ww w.j  a  v a2s  .  c o  m
            }
        }
    }

    return cookies;
}