Package org.sam.server.http.context
Class HandlerFinder
- java.lang.Object
-
- org.sam.server.http.context.HandlerFinder
-
public class HandlerFinder extends java.lang.Object실행할 핸들러를 찾는 클래스
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Handlerfind()핸들러 클래스를 탐색하여 해당하는 핸들러의 정보를 담은 인스턴스를 생성한다.static HandlerFinderof(Request request, Response response)인스턴스를 생성한다.
-
-
-
Method Detail
-
of
public static HandlerFinder of(Request request, Response response)
인스턴스를 생성한다.- Parameters:
request- 요청 인스턴스response- 응답 인스턴스- Returns:
- HandlerFinder 인스턴스
-
find
public Handler find() throws HandlerNotFoundException
핸들러 클래스를 탐색하여 해당하는 핸들러의 정보를 담은 인스턴스를 생성한다.- Returns:
- 핸들러 정보 인스턴스
- Throws:
HandlerNotFoundException- 홴들러를 찾지 못 했을 시- See Also:
TODO: 핸들러 찾는 알고리즘 변경해야함.
-
-