com.github.lontime.exthttp.common.ClientCookieEncoderEnum Maven / Gradle / Ivy
package com.github.lontime.exthttp.common;
import io.netty.handler.codec.http.cookie.ClientCookieEncoder;
/**
* ClientCookieEncoderEnum.
* @author lontime
* @since 1.0
*/
public enum ClientCookieEncoderEnum {
/**
* STRICT.
*/
STRICT,
/**
* LAX.
*/
LAX;
public ClientCookieEncoder toCookieEncoder() {
switch (this) {
case STRICT:
return ClientCookieEncoder.STRICT;
default:
return ClientCookieEncoder.LAX;
}
}
}