io.pkts.packet.sip.header.impl.SipHeaderBuilder Maven / Gradle / Ivy
package io.pkts.packet.sip.header.impl;
import io.pkts.buffer.Buffer;
import io.pkts.packet.sip.header.SipHeader;
/**
* @author [email protected]
*/
public class SipHeaderBuilder implements SipHeader.Builder {
private final Buffer name;
private Buffer value;
public SipHeaderBuilder(final Buffer name, final Buffer value) {
this.name = name;
}
@Override
public SipHeader.Builder withValue(final Buffer value) {
this.value = value;
return this;
}
@Override
public SipHeader build() {
return new SipHeaderImpl(name, value);
}
}