From 6ab914d5a25781d2845334f1186e23a65522eb62 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 9 May 2023 03:41:09 +0900 Subject: [PATCH] =?UTF-8?q?AbstractComponent=EC=97=90=EC=84=9C=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/Access.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/foundation/Access.java b/src/main/java/cokr/xit/foundation/Access.java index ea39c3c..a4531a1 100644 --- a/src/main/java/cokr/xit/foundation/Access.java +++ b/src/main/java/cokr/xit/foundation/Access.java @@ -4,7 +4,7 @@ import java.util.Locale; /**현재 클라이언트(사용자)의 접근정보를 추출하여 제공하는 클래스. */ -public class Access extends AbstractComponent { +public class Access { protected static final ThreadLocal current = new ThreadLocal<>(); private String @@ -39,7 +39,7 @@ public class Access extends AbstractComponent { * @return 현재 클라이언트의 접근 아이디 */ public String getId() { - return ifEmpty(id, id = "access-" + System.currentTimeMillis()); + return Assert.ifEmpty(id, id = "access-" + System.currentTimeMillis()); } /**세션 아이디를 반환한다. @@ -94,7 +94,7 @@ public class Access extends AbstractComponent { * @return 현재 스레드의 클라이언트의 Access */ public static Access current() { - return ifEmpty(current.get(), Access::new); + return Assert.ifEmpty(current.get(), Access::new); } /**현재 Access를 현재 스레드의 클라이언트의 접근정보로 설정한다. @@ -183,7 +183,7 @@ public class Access extends AbstractComponent { * @return Access */ public Access setJsonResponse(String header) { - this.jsonResponse = !isEmpty(header) && header.contains("json"); + this.jsonResponse = !Assert.isEmpty(header) && header.contains("json"); return this; }