public final class ErrorPageDTOBuilder extends Object
| Constructor and Description |
|---|
ErrorPageDTOBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static org.osgi.service.http.runtime.dto.ErrorPageDTO |
build(ServletHandler handler,
int reason)
Build a servlet DTO from a servlet handler
|
static org.osgi.service.http.runtime.dto.ErrorPageDTO |
build(ServletInfo info,
boolean failed)
Build a servlet DTO from a servlet info
|
static void |
fill(org.osgi.service.http.runtime.dto.BaseServletDTO dto,
ServletHandler handler)
Build a servlet DTO from a servlet info
|
static void |
fill(org.osgi.service.http.runtime.dto.BaseServletDTO dto,
ServletInfo info)
Build a servlet DTO from a servlet info
|
public static org.osgi.service.http.runtime.dto.ErrorPageDTO 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.ErrorPageDTO build(ServletInfo info, boolean failed)
info - The servlet infopublic static void fill(org.osgi.service.http.runtime.dto.BaseServletDTO dto,
ServletHandler handler)
info - The servlet infopublic static void fill(org.osgi.service.http.runtime.dto.BaseServletDTO dto,
ServletInfo info)
info - The servlet infoCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.