Class ResourceDTOBuilder


  • public final class ResourceDTOBuilder
    extends Object
    • Constructor Detail

      • ResourceDTOBuilder

        public ResourceDTOBuilder()
    • Method Detail

      • build

        public static org.osgi.service.http.runtime.dto.ResourceDTO build​(ServletHandler handler,
                                                                          int reason)
        Build a servlet DTO from a servlet handler
        Parameters:
        handler - The servlet handler
        reason - 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.http.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.http.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