public class WebXmlAsset extends Object
Constructor and Description |
---|
WebXmlAsset() |
WebXmlAsset(InputStream fromStream) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(String listener) |
Servlet |
addServlet(String servletName,
String servletClass) |
List<SecurityConstraint> |
allConstraints() |
List<String> |
allListenersClasses() |
String |
getContextParam(String name) |
String |
getLoginRealm(String authMethod) |
String |
getName() |
Servlet |
getServlet(String servletClass) |
List<String> |
getServletMapping(String servletName) |
InputStream |
openStream() |
SecurityConstraint |
protect() |
SecurityConstraint |
protect(String urlPattern) |
void |
setContextParam(String name,
String... values) |
void |
setFormLoginConfig(String realmName,
String loginPage,
String errorPage) |
void |
setLoginConfig(String authMethod,
String realmName) |
public static final String NAME
public WebXmlAsset()
public WebXmlAsset(InputStream fromStream)
public void setFormLoginConfig(String realmName, String loginPage, String errorPage)
public void addListener(String listener)
public SecurityConstraint protect()
public SecurityConstraint protect(String urlPattern)
public List<SecurityConstraint> allConstraints()
public List<String> getServletMapping(String servletName)
servletName
- url-pattern
elements or an empty list if no mapping is presentpublic InputStream openStream()
public String getName()
Copyright © 2019 JBoss by Red Hat. All rights reserved.