org.apache.axis.transport.http
public class AutoRegisterServlet extends AxisServletBase
ATTR_AXIS_ENGINE, axisServer
Constructor and Description |
---|
AutoRegisterServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyAndSaveSettings()
actually update the engine and save the settings
|
protected void |
autoRegister()
register classes, log exceptions
|
java.lang.String[] |
getResourcesToRegister()
subclass this to return an array of resource names.
|
void |
init()
init by registering
|
protected void |
logSuccess(java.lang.String item)
handler for logging success, defaults to handing off to logging
at debug level
|
void |
registerAndLogResource(java.lang.String resource)
register a single resource; log trouble and success.
|
protected void |
registerAnythingElse()
override point for subclasses to add other registration stuff
|
void |
registerFile(java.io.File file)
register a file
|
void |
registerResource(java.lang.String resourcename)
register a resource
|
void |
registerStream(java.io.InputStream instream)
register an open stream, which we close afterwards
|
decLockCounter, destroy, getEngine, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
public void init() throws javax.servlet.ServletException
init
in class AxisServletBase
javax.servlet.ServletException
public void registerStream(java.io.InputStream instream) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
instream
- org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public void registerResource(java.lang.String resourcename) throws org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.IOException
resourcename
- org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
public void registerFile(java.io.File file) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
file
- java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public java.lang.String[] getResourcesToRegister()
protected void logSuccess(java.lang.String item)
item
- what were we loading?protected void autoRegister()
protected void registerAnythingElse()
public void registerAndLogResource(java.lang.String resource)
resource
- protected void applyAndSaveSettings() throws AxisFault, ConfigurationException
AxisFault
ConfigurationException
Copyright ? 2005 Apache Web Services Project. All Rights Reserved.