Skip to content

HTTP 웹 서버 2단계 - 리팩토링 요구사항 1,2번 구현#21

Merged
6 commits merged intodevfrom
refactor2
Mar 29, 2021
Merged

HTTP 웹 서버 2단계 - 리팩토링 요구사항 1,2번 구현#21
6 commits merged intodevfrom
refactor2

Conversation

@janeljs
Copy link
Copy Markdown
Owner

@janeljs janeljs commented Mar 29, 2021

No description provided.

janeljs added 6 commits March 29, 2021 15:46
- Controller 인터페이스 추가
- AbstractController 추상 클래스 추가
- AbstractController를 상속하는 CreateUserController, ListUserController, LoginController 클래스 추가
- URL과 Controller를 Map에 저장해서 if문 제거
- response200Header 메서드에 contentType 파라미터를 추가하여 리팩토링
@janeljs janeljs requested a review from a user March 29, 2021 10:27
Comment on lines +47 to +48
Controller controller = CONTROLLER_MAP.get(url);
controller.service(httpRequest, httpResponse);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

다형성을 아주 멋지게 활용해주셨군요!

@ghost ghost merged commit b7eb9c3 into dev Mar 29, 2021
@janeljs janeljs deleted the refactor2 branch March 29, 2021 10:28
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant