Class ResourceDTOBuilder
java.lang.Object
org.apache.felix.http.base.internal.runtime.dto.ResourceDTOBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.osgi.service.servlet.runtime.dto.ResourceDTO
build
(ServletHandler handler, int reason) Build a servlet DTO from a servlet handlerstatic org.osgi.service.servlet.runtime.dto.ResourceDTO
build
(ResourceInfo info, boolean failed) Build a servlet DTO from a servlet infostatic org.osgi.service.servlet.runtime.dto.ResourceDTO
build
(ServletInfo info, boolean failed) Build a servlet DTO from a servlet info
-
Constructor Details
-
ResourceDTOBuilder
public ResourceDTOBuilder()
-
-
Method Details
-
build
public static org.osgi.service.servlet.runtime.dto.ResourceDTO 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
public static org.osgi.service.servlet.runtime.dto.ResourceDTO build(ServletInfo info, boolean failed) Build a servlet DTO from a servlet info- Parameters:
info
- The servlet info- Returns:
- A servlet DTO
-
build
public static org.osgi.service.servlet.runtime.dto.ResourceDTO build(ResourceInfo info, boolean failed) Build a servlet DTO from a servlet info- Parameters:
info
- The servlet info- Returns:
- A servlet DTO
-