Class ServletDTOBuilder
java.lang.Object
org.apache.felix.http.base.internal.runtime.dto.ServletDTOBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.osgi.service.servlet.runtime.dto.ServletDTObuild(ServletHandler handler, int reason) Build a servlet DTO from a servlet handlerstatic org.osgi.service.servlet.runtime.dto.ServletDTObuild(ServletInfo info, int reason) Build a servlet DTO from a servlet infostatic voidfill(org.osgi.service.servlet.runtime.dto.BaseServletDTO dto, ServletHandler handler) Fill a servlet DTO from a servlet handlerstatic voidfill(org.osgi.service.servlet.runtime.dto.BaseServletDTO dto, ServletInfo info) Fill a servlet DTO from a servlet info
-
Constructor Details
-
ServletDTOBuilder
public ServletDTOBuilder()
-
-
Method Details
-
build
public static org.osgi.service.servlet.runtime.dto.ServletDTO build(ServletHandler handler, int reason) Build a servlet DTO from a servlet handler- Parameters:
handler- The servlet handlerreason- If reason is -1, a servlet DTO is created, otherwise a failed servlet DTO is returned- Returns:
- A servlet DTO
-
build
Build a servlet DTO from a servlet info- Parameters:
info- The servlet inforeason- The reason for the failure or -1 if the servlet was registered successfully- Returns:
- A servlet DTO
-
fill
public static void fill(org.osgi.service.servlet.runtime.dto.BaseServletDTO dto, ServletHandler handler) Fill a servlet DTO from a servlet handler- Parameters:
dto- The base servlet DTOhandler- The servlet handler
-
fill
Fill a servlet DTO from a servlet info- Parameters:
dto- The base servlet DTOinfo- The servlet info
-