예제 #1
0
 @Override
 public String getInitParameter(final String name) {
   if (name == null) {
     throw UndertowServletMessages.MESSAGES.nullName();
   }
   return deploymentInfo.getInitParameters().get(name);
 }
예제 #2
0
 @Override
 public boolean setInitParameter(final String name, final String value) {
   if (deploymentInfo.getInitParameters().containsKey(name)) {
     return false;
   }
   deploymentInfo.addInitParameter(name, value);
   return true;
 }
예제 #3
0
 @Override
 public Enumeration<String> getInitParameterNames() {
   return new IteratorEnumeration<String>(deploymentInfo.getInitParameters().keySet().iterator());
 }