-
Notifications
You must be signed in to change notification settings - Fork 387
[3단계- Tomcat 구현하기] 배키(백은희) 미션 제출합니다. #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
slimsha2dy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안녕하세요 배키~
기존에도 리팩토링이 아주 잘 되어 있던 코드라 크게 피드백드릴 부분은 크게 없습니다.
다만 controller 패키지는 사용자가 개발하는 부분인데 apache/catalina에 있는 건 어색하다고 생각합니다. 사용자가 구현하는 패키지, 즉 Application 클래스가 포함된 패키지에 있는 편이 좋을 것 같은데 이에 대한 배키의 생각이 궁금합니다.
- 그런데 또 정적 리소스를 관리하는
DefaultController의 기능은 톰캣의 기능으로 알고 있어 이는 따로 관리가 되어야 할 것 같네요.
그 외에 피드백은 크게 드릴 부분도 없었고 해서 가볍게 봐주시면 좋을 것 같습니다!
| public class HttpRequest { | ||
|
|
||
| private final String request; | ||
| private static final String SP = " "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SP는 separator를 뜻하는 걸까요?
좀 더 의미가 명확하면 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앗 SPACE를 뜻하는 것입니다. 반영하겠습니다 :)
| import java.util.Arrays; | ||
| import java.util.NoSuchElementException; | ||
|
|
||
| public enum HttpVersion { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
버전도 상수화한 점이 아주 좋습니다! 🐤
| public Session getSession(boolean create) { | ||
| Session session = new Session(UUID.randomUUID().toString()); | ||
| SessionManager sessionManager = SessionManager.getInstance(); | ||
| sessionManager.add(session); | ||
| return session; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저번엔 지나쳤던 부분이긴 한데..
create 변수는 어디 사용되고 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사실 현재 코드에서 쓰이고 있지 않습니다..😅 없애야 겠다고 생각했는데, 저도 미뤄두다 삭제를 안했네요.. 수정하겠습니다!
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빈틈의 실 발견
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
어이쿠..
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
약점 포착
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
세상에...
|
안녕하세요 알파카! 알파카의 말대로 생각 해보니, 그런데 현재는 확인 부탁드려요! |
slimsha2dy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
학습 테스트도 모두 잘 돌아가는 것 확인했습니다~
3단계 수고하셨고 4단계까지 화이팅해보아요 😄
안녕하세요. 알파카🦙
리뷰이 배키입니다 :)
3단계 리팩토링 진행해서 제출합니다!
3단계도 잘 부탁드립니다~ 😊
3단계를 진행하면서, 변경된 부분은 다음과 같습니다.