| Method from org.jboss.jetty.JettyService Detail: |
public void createService() throws Exception {
super.createService();
if( _jettyConfig != null )
_jetty.setConfigurationElement(_jettyConfig);
}
|
public void destroyService() throws Exception {
super.destroyService();
// this is not symmetrical - these things are created in
// postRegister, not createService()...
try
{
_jetty.destroy();
_jetty =null;
_jettyBean=null;
}
catch (Throwable e)
{
log.error("could not destroy Jetty", e);
}
}
|
public Element getConfigurationElement() {
//return _jetty.getConfigurationElement();
return _jettyConfig;
}
Get the extended Jetty configuration XML fragment |
public boolean getJava2ClassLoadingCompliance() {
return _jetty.getJava2ClassLoadingCompliance();
}
|
public String getName() {
return NAME;
}
|
public String getSubjectAttributeName() {
return _jetty.getSubjectAttributeName();
}
|
public boolean getSupportJSR77() {
return _jetty.getSupportJSR77();
}
|
public boolean getUnpackWars() {
return _jetty.getUnpackWars();
}
|
public String getWebDefaultResource() {
return _jetty.getWebDefaultResource();
}
|
protected void log(MultiException e) {
log.error("multiple exceptions...");
Iterator iter = e.getExceptions().iterator();
while (iter.hasNext())
log.error("exception", (Exception)iter.next());
}
mex should implement a better printStackTrace... |
public void performDeploy(WebApplication webApp,
String warUrl,
WebDescriptorParser parser) throws DeploymentException {
_jetty.deploy(webApp, warUrl, parser);
}
|
public void performUndeploy(String warUrl) throws DeploymentException {
_jetty.undeploy(warUrl);
}
|
public void postRegister(Boolean done) {
super.postRegister(done);
// this must be done before config is read otherwise configs
// defined therein will not receive MBean peers. Since it must now
// be done before JMX has a chance to configure us, I'm removing
// the option not to have these MBeans built...
try
{
_jettyBean = new JettyMBean(_jetty);
_server.registerMBean(_jettyBean, null);
}
catch (Throwable e)
{
log.error("could not create MBean peers", e);
}
log.debug("created MBean peers");
}
|
public ObjectName preRegister(MBeanServer server,
ObjectName name) throws Exception {
super.preRegister(server,name);
name = getObjectName(server, name);
_server = server;
return name;
}
|
public void setConfigurationElement(Element configElement) {
log.debug("Saving Configuration to xml fragment");
this._jettyConfig = configElement;
// Don't apply this now as this element can be set more than during init
//_jetty.setConfigurationElement (configElement);
}
|
public void setJava2ClassLoadingCompliance(boolean loaderCompliance) {
if (log.isDebugEnabled())
log.debug("set Java2ClassLoadingCompliance to "+ loaderCompliance);
super.setJava2ClassLoadingCompliance(loaderCompliance);
_jetty.setJava2ClassLoadingCompliance(loaderCompliance);
}
|
public void setSubjectAttributeName(String subjectAttributeName) {
if (log.isDebugEnabled())
log.debug("set SubjectAttributeName to "+subjectAttributeName);
_jetty.setSubjectAttributeName(subjectAttributeName);
}
|
public void setSupportJSR77(boolean supportJSR77) {
if (log.isDebugEnabled())
log.debug("set SupportJSR77 to "+supportJSR77);
_jetty.setSupportJSR77(supportJSR77);
}
|
public void setUnpackWars(boolean unpackWars) {
if (log.isDebugEnabled())
log.debug("set UnpackWars to "+unpackWars);
_jetty.setUnpackWars(unpackWars);
}
|
public void setWebDefaultResource(String webDefaultResource) {
if (log.isDebugEnabled())
log.debug("set WebDefaultResource to "+webDefaultResource);
_jetty.setWebDefaultResource(webDefaultResource);
}
|
public void startService() throws Exception {
super.startService();
try
{
_jetty.start();
}
catch (MultiException e)
{
log(e);
}
catch (Exception e)
{
log.error("could not start Jetty", e);
}
}
|
public void stopService() throws Exception {
super.stopService();
try
{
_jetty.stop();
}
catch (Exception e)
{
log.error("could not stop Jetty", e);
}
}
|