|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.generators.wsgen.ddmodifier.DeploymentDescModifier org.ow2.jonas.generators.wsgen.ddmodifier.WsEndpointDDModifier
public class WsEndpointDDModifier
Modify a Deployment Desc for Endpoint. Wrapper around a web.xml DOM.
Field Summary |
---|
Fields inherited from class org.ow2.jonas.generators.wsgen.ddmodifier.DeploymentDescModifier |
---|
J2EE_NS, JONAS_NS |
Constructor Summary | |
---|---|
WsEndpointDDModifier(Document web)
Creates a new WsEndpointDDModifier object. |
Method Summary | |
---|---|
void |
addEjbLocalRef(String name,
String home,
String remote,
String link)
DOCUMENT ME! |
void |
addEjbRef(String name,
String home,
String remote,
String link)
DOCUMENT ME! |
void |
addEndpointLoginConfig(Element loginConfig)
Add a new login-config element into the web.xml |
void |
addEndpointSecurityConstraint(Node securityConstraint)
Add a new security-constraint element into the web.xml |
void |
addSecurityRole(Node securityRole)
Add a new security-role element into the web.xml |
void |
addServlet(String name,
String classname)
Add a new servlet element in the web.xml. |
void |
addServletMapping(String name,
String mapping)
Add a new servlet-mapping element in the web.xml. |
void |
addServletParam(String servletName,
String pName,
String pValue)
Add a new init-param element in the web.xml. |
void |
addServletSecurityRoleRefs(String servletName,
NodeList securityRoleRefs)
Add a new security-role-ref element in the web.xml. |
void |
removeServlet(String name)
Remove a servlet element from the web.xml. |
String |
removeServletMapping(String sName)
Remove servlet-mapping tag associated to a given servlet-name |
NodeList |
removeServletWithSecurity(String name)
Remove a servlet element from the web.xml. |
void |
updateSecurityConstraint(String oldUrlPatter,
String newUrlPatterValue)
Update the security-constraint element having url-pattern equal with oldPattern by replacing this old pattern with the newUrlPattern |
Methods inherited from class org.ow2.jonas.generators.wsgen.ddmodifier.DeploymentDescModifier |
---|
getDocument, getElement, getLogger, getParent, newElement, newElement, newJ2EEElement, newJ2EEElement, newJOnASElement, newJOnASElement, setDocument, setElement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WsEndpointDDModifier(Document web)
web
- web.xml documentMethod Detail |
---|
public void addServlet(String name, String classname)
servlet
element in the web.xml.
name
- servlet name.classname
- servlet fully qualified classname.public void addEndpointSecurityConstraint(Node securityConstraint)
securityConstraint
- A node containing the security-constraint settingpublic void addEndpointLoginConfig(Element loginConfig)
loginConfig
- An element constaining the login-config settingpublic void addSecurityRole(Node securityRole)
securityRole
- A node containing the login-config settingpublic void removeServlet(String name)
servlet
element from the web.xml.
name
- servlet name.public NodeList removeServletWithSecurity(String name)
servlet
element from the web.xml.
name
- servlet name.
public void addServletMapping(String name, String mapping)
servlet-mapping
element in the web.xml.
name
- servlet name.mapping
- url-mapping
valuepublic void addServletParam(String servletName, String pName, String pValue)
init-param
element in the web.xml.
servletName
- the servlet name where init-param will be added.pName
- parameter namepValue
- parameter valuepublic void addServletSecurityRoleRefs(String servletName, NodeList securityRoleRefs)
security-role-ref
element in the web.xml.
servletName
- the servlet name where security-role-ref will be
added.securityRoleRefs
- security-role elements for a servletpublic String removeServletMapping(String sName)
sName
- servlet-name
public void updateSecurityConstraint(String oldUrlPatter, String newUrlPatterValue)
oldUrlPatter
- url-pattern to be replacednewUrlPatterValue
- url-pattern to replace withpublic void addEjbRef(String name, String home, String remote, String link)
name
- DOCUMENT ME!home
- DOCUMENT ME!remote
- DOCUMENT ME!link
- DOCUMENT ME!public void addEjbLocalRef(String name, String home, String remote, String link)
name
- DOCUMENT ME!home
- DOCUMENT ME!remote
- DOCUMENT ME!link
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |