001// *************************************************************************************************************************** 002// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * 003// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * 004// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * 005// * with the License. You may obtain a copy of the License at * 006// * * 007// * http://www.apache.org/licenses/LICENSE-2.0 * 008// * * 009// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * 010// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * 011// * specific language governing permissions and limitations under the License. * 012// *************************************************************************************************************************** 013package org.apache.juneau.rest.arg; 014 015import static org.apache.juneau.internal.CollectionUtils.*; 016 017import java.util.*; 018 019import jakarta.servlet.http.*; 020 021/** 022 * A simple list of {@link Cookie} objects. 023 * 024 * <h5 class='section'>See Also:</h5><ul> 025 * <li class='link'><a class="doclink" href="../../../../../index.html#jrs.HttpParts">HTTP Parts</a> 026 * </ul> 027 * 028 * @serial exclude 029 */ 030public class CookieList extends ArrayList<Cookie> { 031 032 private static final long serialVersionUID = 1L; 033 034 /** 035 * Static creator. 036 * 037 * @param values The values to set in the cookie list. 038 * @return A new cookie list. 039 */ 040 public static CookieList of(Cookie[] values) { 041 return new CookieList(values); 042 } 043 044 /** 045 * Constructor. 046 * 047 * @param values The values to set in the cookie list. 048 */ 049 public CookieList(Cookie[] values) { 050 super(alist(values)); 051 } 052}