org.zodiac.netty.http.headers.StrictTransportSecurityHeader Maven / Gradle / Ivy
package org.zodiac.netty.http.headers;
import org.zodiac.commons.http.entities.StrictTransportSecurity;
import io.netty.util.AsciiString;
final class StrictTransportSecurityHeader extends AbstractHeader {
private static final AsciiString STRICT_TRANSPORT_SECURITY = AsciiString.of("strict-transport-securty");
StrictTransportSecurityHeader() {
super(StrictTransportSecurity.class, STRICT_TRANSPORT_SECURITY);
}
@Override
public StrictTransportSecurity toValue(CharSequence value) {
return StrictTransportSecurity.parse(value);
}
@Override
public CharSequence toCharSequence(StrictTransportSecurity value) {
return AsciiString.of(value.toString());
}
}