
z11.samplestructs.StringHeader Maven / Gradle / Ivy
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package z11.samplestructs;
import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.ParseException;
/**
*
* @author danny
*/
public class StringHeader implements Header {
private String name;
private String value;
public StringHeader(String name_, String value_) {
name = name_;
value = value_;
}
@Override
public String getName() {
return name;
}
@Override
public String getValue() {
return value;
}
@Override
public HeaderElement[] getElements() throws ParseException {
throw new ParseException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy