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

org.codehaus.httpcache4j.AuthDirective Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
package org.codehaus.httpcache4j;

import com.google.common.base.Joiner;

import java.util.List;

/**
 * @author Erlend Hamnaberg
 */
public class AuthDirective extends Directive {
    public AuthDirective(final String name, String value) {
        super(name, value);
    }

    public AuthDirective(final String name, String value, List parameters) {
        super(name, value, parameters);
    }

    @Override
    public String toString() {
        String output = name;
        if (value != null && !value.isEmpty()) {
            output += " " + value;
        }
        if (!getParameters().isEmpty()) {
            output = output + " " + Joiner.on(", ").join(getParameters());
        }
        return output;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy