public abstract class RegistrationBean extends Object implements ServletContextInitializer
ServletRegistrationBean
,
FilterRegistrationBean
,
ServletListenerRegistrationBean
Constructor and Description |
---|
RegistrationBean() |
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 void |
configure(Registration.Dynamic registration)
Configure registration base settings.
|
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 support for this registration.
|
void |
setAsyncSupported(boolean asyncSupported)
Sets if asynchronous operations are support 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
public void setName(String name)
public void setAsyncSupported(boolean asyncSupported)
true
.public boolean isAsyncSupported()
public void setInitParameters(Map<String,String> initParameters)
public Map<String,String> getInitParameters()
public void addInitParameter(String name, String value)
name
- the init-parameter namevalue
- the init-parameter valueprotected final String getOrDeduceName(Object value)
value
- the object used for convention based namesprotected void configure(Registration.Dynamic registration)
Copyright © 2013. All rights reserved.