All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testifyproject.netty.handler.codec.http.Cookie Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Copyright 2012 The Netty Project
 *
 * The Netty Project licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in org.testifyproject.testifyprojectpliance
 * with the License. You may obtain a copy of the License at:
 *
 *   http://www.apache.org.testifyproject/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package org.testifyproject.testifyproject.netty.handler.codec.http;

import java.util.Set;

/**
 * An interface org.testifyproject.testifyprojectfining an
 * HTTP cookie.
 * @org.testifyproject.testifyprojectprecated Use {@link org.testifyproject.testifyproject.netty.handler.codec.http.cookie.Cookie} instead.
 */
@Deprecated
public interface Cookie extends org.testifyproject.testifyproject.netty.handler.codec.http.cookie.Cookie {

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #name()} instead.
     */
    @Deprecated
    String getName();

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #value()} instead.
     */
    @Deprecated
    String getValue();

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #domain()} instead.
     */
    @Deprecated
    String getDomain();

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #path()} instead.
     */
    @Deprecated
    String getPath();

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #org.testifyproject.testifyprojectment()} instead.
     */
    @Deprecated
    String getComment();

    /**
     * Returns the org.testifyproject.testifyprojectment of this {@link Cookie}.
     *
     * @return The org.testifyproject.testifyprojectment of this {@link Cookie}
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    String org.testifyproject.testifyprojectment();

    /**
     * Sets the org.testifyproject.testifyprojectment of this {@link Cookie}.
     *
     * @param org.testifyproject.testifyprojectment The org.testifyproject.testifyprojectment to use
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setComment(String org.testifyproject.testifyprojectment);

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #maxAge()} instead.
     */
    @Deprecated
    long getMaxAge();

    /**
     * Returns the maximum age of this {@link Cookie} in seconds or {@link Long#MIN_VALUE} if unspecified
     *
     * @return The maximum age of this {@link Cookie}
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    @Override
    long maxAge();

    /**
     * Sets the maximum age of this {@link Cookie} in seconds.
     * If an age of {@code 0} is specified, this {@link Cookie} will be
     * automatically removed by browser because it will expire immediately.
     * If {@link Long#MIN_VALUE} is specified, this {@link Cookie} will be removed when the
     * browser is closed.
     *
     * @param maxAge The maximum age of this {@link Cookie} in seconds
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    @Override
    void setMaxAge(long maxAge);

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #version()} instead.
     */
    @Deprecated
    int getVersion();

    /**
     * Returns the version of this {@link Cookie}.
     *
     * @return The version of this {@link Cookie}
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    int version();

    /**
     * Sets the version of this {@link Cookie}.
     *
     * @param version The new version to use
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setVersion(int version);

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #org.testifyproject.testifyprojectmentUrl()} instead.
     */
    @Deprecated
    String getCommentUrl();

    /**
     * Returns the org.testifyproject.testifyprojectment URL of this {@link Cookie}.
     *
     * @return The org.testifyproject.testifyprojectment URL of this {@link Cookie}
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    String org.testifyproject.testifyprojectmentUrl();

    /**
     * Sets the org.testifyproject.testifyprojectment URL of this {@link Cookie}.
     *
     * @param org.testifyproject.testifyprojectmentUrl The org.testifyproject.testifyprojectment URL to use
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setCommentUrl(String org.testifyproject.testifyprojectmentUrl);

    /**
     * Checks to see if this {@link Cookie} is to be discarded by the browser
     * at the end of the current session.
     *
     * @return True if this {@link Cookie} is to be discarded, otherwise false
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    boolean isDiscard();

    /**
     * Sets the discard flag of this {@link Cookie}.
     * If set to true, this {@link Cookie} will be discarded by the browser
     * at the end of the current session
     *
     * @param discard True if the {@link Cookie} is to be discarded
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setDiscard(boolean discard);

    /**
     * @org.testifyproject.testifyprojectprecated Use {@link #ports()} instead.
     */
    @Deprecated
    Set getPorts();

    /**
     * Returns the ports that this {@link Cookie} can be accessed on.
     *
     * @return The {@link Set} of ports that this {@link Cookie} can use
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    Set ports();

    /**
     * Sets the ports that this {@link Cookie} can be accessed on.
     *
     * @param ports The ports that this {@link Cookie} can be accessed on
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setPorts(int... ports);

    /**
     * Sets the ports that this {@link Cookie} can be accessed on.
     *
     * @param ports The {@link Iterable} collection of ports that this
     *              {@link Cookie} can be accessed on.
     *
     * @org.testifyproject.testifyprojectprecated Not part of RFC6265
     */
    @Deprecated
    void setPorts(Iterable ports);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy