D
- the dynamic registration resultpublic abstract class DynamicRegistrationBean<D extends javax.servlet.Registration.Dynamic> extends RegistrationBean
dynamic
based
registration beans.Constructor and Description |
---|
DynamicRegistrationBean() |
Modifier and Type | Method and Description |
---|---|
void |
addInitParameter(String name,
String value)
Add a single init-parameter, replacing any existing parameter with the same name.
|
protected abstract D |
addRegistration(String description,
javax.servlet.ServletContext servletContext) |
protected void |
configure(D registration) |
Map<String,String> |
getInitParameters()
Returns a mutable Map of the registration init-parameters.
|
protected String |
getOrDeduceName(Object value)
Deduces the name for this registration.
|
boolean |
isAsyncSupported()
Returns if asynchronous operations are supported for this registration.
|
protected void |
register(String description,
javax.servlet.ServletContext servletContext)
Register this bean with the servlet context.
|
void |
setAsyncSupported(boolean asyncSupported)
Sets if asynchronous operations are supported for this registration.
|
void |
setInitParameters(Map<String,String> initParameters)
Set init-parameters for this registration.
|
void |
setName(String name)
Set the name of this registration.
|
getDescription, getOrder, isEnabled, onStartup, setEnabled, setOrder
public void setName(String name)
name
- the name of the registrationpublic void setAsyncSupported(boolean asyncSupported)
true
.asyncSupported
- if async is supportedpublic boolean isAsyncSupported()
public void setInitParameters(Map<String,String> initParameters)
initParameters
- the init parametersgetInitParameters()
,
addInitParameter(java.lang.String, java.lang.String)
public Map<String,String> getInitParameters()
public void addInitParameter(String name, String value)
name
- the init-parameter namevalue
- the init-parameter valueprotected final void register(String description, javax.servlet.ServletContext servletContext)
RegistrationBean
register
in class RegistrationBean
description
- a description of the item being registeredservletContext
- the servlet contextprotected abstract D addRegistration(String description, javax.servlet.ServletContext servletContext)
protected void configure(D registration)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.