public final class HandlerRegistry extends Object
PerContextHandlerRegistry registries.| Constructor and Description |
|---|
HandlerRegistry(org.apache.felix.http.base.internal.HttpConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull PerContextHandlerRegistry registry)
Add a new context registration.
|
PerContextHandlerRegistry |
getBestMatchingRegistry(String requestURI) |
org.apache.felix.http.base.internal.HttpConfig |
getConfig() |
@Nullable ServletResolution |
getErrorHandler(@NotNull String requestURI,
Long serviceId,
int code,
Throwable exception) |
FilterHandler[] |
getFilters(@NotNull ServletResolution pr,
@NotNull javax.servlet.DispatcherType dispatcherType,
@NotNull String requestURI) |
PerContextHandlerRegistry |
getRegistry(long key) |
boolean |
getRuntimeInfo(@NotNull org.osgi.service.http.runtime.dto.ServletContextDTO dto,
@NotNull FailedDTOHolder failedDTOHolder) |
void |
init()
Register default context registry for Http Service
|
void |
remove(@NotNull ServletContextHelperInfo info)
Remove a context registration.
|
void |
reset()
Reset to initial state
|
PathResolution |
resolveServlet(@NotNull String requestURI) |
ServletResolution |
resolveServletByName(long contextId,
@NotNull String name)
Get the servlet handler for a servlet by name
|
void |
shutdown()
Shutdown
|
public HandlerRegistry(org.apache.felix.http.base.internal.HttpConfig config)
public org.apache.felix.http.base.internal.HttpConfig getConfig()
public void init()
public void reset()
public void shutdown()
public void remove(@NotNull
@NotNull ServletContextHelperInfo info)
info - The servlet context helper infopublic void add(@NotNull
@NotNull PerContextHandlerRegistry registry)
public PerContextHandlerRegistry getRegistry(long key)
@Nullable public @Nullable ServletResolution getErrorHandler(@NotNull @NotNull String requestURI, Long serviceId, int code, Throwable exception)
public FilterHandler[] getFilters(@NotNull @NotNull ServletResolution pr, @NotNull @NotNull javax.servlet.DispatcherType dispatcherType, @NotNull @NotNull String requestURI)
public PathResolution resolveServlet(@NotNull @NotNull String requestURI)
public ServletResolution resolveServletByName(long contextId, @NotNull @NotNull String name)
contextId - The context idname - The servlet namenullpublic boolean getRuntimeInfo(@NotNull
@NotNull org.osgi.service.http.runtime.dto.ServletContextDTO dto,
@NotNull
@NotNull FailedDTOHolder failedDTOHolder)
public PerContextHandlerRegistry getBestMatchingRegistry(String requestURI)
Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.