org.codehaus.httpcache4j.AuthDirective Maven / Gradle / Ivy
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