Package org.apache.axis.transport.http
Class AutoRegisterServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.axis.transport.http.AxisServletBase
org.apache.axis.transport.http.AutoRegisterServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
Servlet that autoregisters
- Author:
- Steve Loughran xdoclet tags are not active yet; keep web.xml in sync
- See Also:
-
Field Summary
Fields inherited from class org.apache.axis.transport.http.AxisServletBase
ATTR_AXIS_ENGINE, axisServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
actually update the engine and save the settingsprotected void
register classes, log exceptionsString[]
subclass this to return an array of resource names.void
init()
init by registeringprotected void
logSuccess
(String item) handler for logging success, defaults to handing off to logging at debug levelvoid
registerAndLogResource
(String resource) register a single resource; log trouble and success.protected void
override point for subclasses to add other registration stuffvoid
registerFile
(File file) register a filevoid
registerResource
(String resourcename) register a resourcevoid
registerStream
(InputStream instream) register an open stream, which we close afterwardsMethods inherited from class org.apache.axis.transport.http.AxisServletBase
decLockCounter, destroy, getEngine, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebappBase, getWebInfPath, incLockCounter, isDevelopment, service
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
AutoRegisterServlet
public AutoRegisterServlet()
-
-
Method Details
-
init
public void init() throws javax.servlet.ServletExceptioninit by registering- Overrides:
init
in classAxisServletBase
- Throws:
javax.servlet.ServletException
-
registerStream
public void registerStream(InputStream instream) throws SAXException, ParserConfigurationException, IOException register an open stream, which we close afterwards- Parameters:
instream
-- Throws:
SAXException
ParserConfigurationException
IOException
-
registerResource
public void registerResource(String resourcename) throws SAXException, ParserConfigurationException, IOException register a resource- Parameters:
resourcename
-- Throws:
SAXException
ParserConfigurationException
IOException
-
registerFile
register a file- Parameters:
file
-- Throws:
IOException
SAXException
ParserConfigurationException
-
getResourcesToRegister
subclass this to return an array of resource names.- Returns:
- array of resource names of wsdd files, or null
-
logSuccess
handler for logging success, defaults to handing off to logging at debug level- Parameters:
item
- what were we loading?
-
autoRegister
protected void autoRegister()register classes, log exceptions -
registerAnythingElse
protected void registerAnythingElse()override point for subclasses to add other registration stuff -
registerAndLogResource
register a single resource; log trouble and success.- Parameters:
resource
-
-
applyAndSaveSettings
actually update the engine and save the settings- Throws:
AxisFault
ConfigurationException
-