This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.web.model;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 * http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import java.io.Serializable;
022
023/**
024 * @author Olivier Lamy
025 * @since 1.4-M4
026 */
027public class CookieInformation
028    implements Serializable
029{
030    private String path;
031
032    private String domain;
033
034    private String secure;
035
036    private String timeout;
037
038    private boolean rememberMeEnabled;
039
040    public CookieInformation()
041    {
042        // no op
043    }
044
045    public String getPath()
046    {
047        return path;
048    }
049
050    public void setPath( String path )
051    {
052        this.path = path;
053    }
054
055    public String getDomain()
056    {
057        return domain;
058    }
059
060    public void setDomain( String domain )
061    {
062        this.domain = domain;
063    }
064
065    public String getSecure()
066    {
067        return secure;
068    }
069
070    public void setSecure( String secure )
071    {
072        this.secure = secure;
073    }
074
075    public String getTimeout()
076    {
077        return timeout;
078    }
079
080    public void setTimeout( String timeout )
081    {
082        this.timeout = timeout;
083    }
084
085    public boolean isRememberMeEnabled()
086    {
087        return rememberMeEnabled;
088    }
089
090    public void setRememberMeEnabled( boolean rememberMeEnabled )
091    {
092        this.rememberMeEnabled = rememberMeEnabled;
093    }
094
095    @Override
096    public String toString()
097    {
098        final StringBuilder sb = new StringBuilder();
099        sb.append( "CookieInformation" );
100        sb.append( "{path='" ).append( path ).append( '\'' );
101        sb.append( ", domain='" ).append( domain ).append( '\'' );
102        sb.append( ", secure='" ).append( secure ).append( '\'' );
103        sb.append( ", timeout='" ).append( timeout ).append( '\'' );
104        sb.append( ", rememberMeEnabled=" ).append( rememberMeEnabled );
105        sb.append( '}' );
106        return sb.toString();
107    }
108}