Class ResourceDTOBuilder

java.lang.Object
org.apache.felix.http.base.internal.runtime.dto.ResourceDTOBuilder

public final class ResourceDTOBuilder extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.osgi.service.servlet.runtime.dto.ResourceDTO
    build(ServletHandler handler, int reason)
    Build a servlet DTO from a servlet handler
    static org.osgi.service.servlet.runtime.dto.ResourceDTO
    build(ResourceInfo info, boolean failed)
    Build a servlet DTO from a servlet info
    static org.osgi.service.servlet.runtime.dto.ResourceDTO
    build(ServletInfo info, boolean failed)
    Build a servlet DTO from a servlet info

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 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.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