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
|
String[] |
getResourcesToRegister()
subclass this to return an array of resource names.
|
void |
init()
init by registering
|
protected void |
logSuccess(String item)
handler for logging success, defaults to handing off to logging
at debug level
|
void |
registerAndLogResource(String resource)
register a single resource; log trouble and success.
|
protected void |
registerAnythingElse()
override point for subclasses to add other registration stuff
|
void |
registerFile(File file)
register a file
|
void |
registerResource(String resourcename)
register a resource
|
void |
registerStream(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
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
public void init() throws ServletException
init
in class AxisServletBase
ServletException
public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException
instream
- SAXException
ParserConfigurationException
IOException
public void registerResource(String resourcename) throws SAXException, ParserConfigurationException, IOException
resourcename
- SAXException
ParserConfigurationException
IOException
public void registerFile(File file) throws IOException, SAXException, ParserConfigurationException
file
- IOException
SAXException
ParserConfigurationException
public String[] getResourcesToRegister()
protected void logSuccess(String item)
item
- what were we loading?protected void autoRegister()
protected void registerAnythingElse()
public void registerAndLogResource(String resource)
resource
- protected void applyAndSaveSettings() throws AxisFault, ConfigurationException
AxisFault
ConfigurationException
Copyright © The Apache Software Foundation. All Rights Reserved.