public final class ResourceDTOBuilder extends Object
| Constructor and Description |
|---|
ResourceDTOBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.service.http.runtime.dto.ResourceDTO |
build(ResourceInfo info,
boolean failed)
Build a servlet DTO from a servlet info
|
static org.osgi.service.http.runtime.dto.ResourceDTO |
build(ServletHandler handler,
int reason)
Build a servlet DTO from a servlet handler
|
static org.osgi.service.http.runtime.dto.ResourceDTO |
build(ServletInfo info,
boolean failed)
Build a servlet DTO from a servlet info
|
public static org.osgi.service.http.runtime.dto.ResourceDTO build(ServletHandler handler, int reason)
handler - The servlet handlerreason - If reason is -1, a servlet DTO is created, otherwise a failed servlet DTO is returnedpublic static org.osgi.service.http.runtime.dto.ResourceDTO build(ServletInfo info, boolean failed)
info - The servlet infopublic static org.osgi.service.http.runtime.dto.ResourceDTO build(ResourceInfo info, boolean failed)
info - The servlet infoCopyright © 2006–2020 The Apache Software Foundation. All rights reserved.