35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
package ctbrec.io.json.mapper;
|
|
|
|
import ctbrec.io.json.dto.CookieDto;
|
|
import javax.annotation.processing.Generated;
|
|
import okhttp3.Cookie;
|
|
|
|
@Generated(
|
|
value = "org.mapstruct.ap.MappingProcessor",
|
|
date = "2025-04-27T15:16:06+1000",
|
|
comments = "version: 1.5.3.Final, compiler: Eclipse JDT (IDE) 3.42.0.z20250331-1358, environment: Java 21.0.6 (Eclipse Adoptium)"
|
|
)
|
|
public class CookieMapperImpl implements CookieMapper {
|
|
|
|
@Override
|
|
public CookieDto toDto(Cookie cookie) {
|
|
if ( cookie == null ) {
|
|
return null;
|
|
}
|
|
|
|
CookieDto cookieDto = new CookieDto();
|
|
|
|
cookieDto.setName( cookie.name() );
|
|
cookieDto.setDomain( cookie.domain() );
|
|
cookieDto.setPath( cookie.path() );
|
|
cookieDto.setValue( cookie.value() );
|
|
cookieDto.setExpiresAt( cookie.expiresAt() );
|
|
cookieDto.setHostOnly( cookie.hostOnly() );
|
|
cookieDto.setHttpOnly( cookie.httpOnly() );
|
|
cookieDto.setPersistent( cookie.persistent() );
|
|
cookieDto.setSecure( cookie.secure() );
|
|
|
|
return cookieDto;
|
|
}
|
|
}
|