001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.commons.net;
020
021
022
023/**
024 * Name Value Pair
025 */
026public final class URLItem {
027
028    private String name;
029    private String value;
030        private boolean urlEncoded;
031    
032    /**
033     * @param name
034     * @param value
035     * @param isURLEncoded 
036     */
037        public URLItem(String name, String value, boolean urlEncoded) {
038        this.name = name;
039        this.value = value;
040        this.urlEncoded=urlEncoded;
041       
042    }
043        /*public URLItem(String name, byte[] value, boolean urlEncoded) {
044        this.name = name;
045        //this.value = value;
046        this.urlEncoded=urlEncoded;
047    }*/
048    
049    /**
050         * @return the urlEncoded
051         */
052        public boolean isUrlEncoded() {
053                return urlEncoded;
054        }
055
056        /**
057         * @param urlEncoded the urlEncoded to set
058         */
059        public void setUrlEncoded(boolean urlEncoded) {
060                this.urlEncoded = urlEncoded;
061        }
062
063        /**
064     * @return Returns the name.
065     */
066    public String getName() {
067        return name;
068    }
069    /**
070     * @param name The name to set.
071     */
072    public void setName(String name) {
073        this.name = name;
074    }
075    /**
076     * @return Returns the value.
077     */
078    public String getValue() {
079        return value;
080    }
081    /**
082     * @param value The value to set.
083     */
084    public void setValue(String value) {
085        this.value = value;
086    }
087
088}