org.apache.axis.transport.http

Class AutoRegisterServlet


public class AutoRegisterServlet
extends AxisServletBase

Servlet that autoregisters

Author:
Steve Loughran xdoclet tags are not active yet; keep web.xml in sync

Field Summary

Fields inherited from class org.apache.axis.transport.http.AxisServletBase

ATTR_AXIS_ENGINE, axisServer

Method Summary

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

Methods inherited from class org.apache.axis.transport.http.AxisServletBase

decLockCounter, destroy, getEngine, getEngine, getEngineEnvironment, getHomeDir, getLoadCounter, getOption, getServletContext, getWebInfPath, getWebappBase, incLockCounter, init, isDevelopment, service

Method Details

applyAndSaveSettings

protected void applyAndSaveSettings()
            throws AxisFault,
                   ConfigurationException
actually update the engine and save the settings

Throws:
AxisFault -
ConfigurationException -


autoRegister

protected void autoRegister()
register classes, log exceptions


getResourcesToRegister

public String[] getResourcesToRegister()
subclass this to return an array of resource names.

Returns:
array of resource names of wsdd files, or null


init

public void init()
            throws javax.servlet.ServletException
init by registering
Overrides:
init in interface AxisServletBase


logSuccess

protected void logSuccess(String item)
handler for logging success, defaults to handing off to logging at debug level

Parameters:
item - what were we loading?


registerAndLogResource

public void registerAndLogResource(String resource)
register a single resource; log trouble and success.

Parameters:
resource -


registerAnythingElse

protected void registerAnythingElse()
override point for subclasses to add other registration stuff


registerFile

public void registerFile(File file)
            throws IOException,
                   SAXException,
                   ParserConfigurationException
register a file

Parameters:
file -


registerResource

public void registerResource(String resourcename)
            throws SAXException,
                   ParserConfigurationException,
                   IOException
register a resource

Parameters:
resourcename -


registerStream

public void registerStream(InputStream instream)
            throws SAXException,
                   ParserConfigurationException,
                   IOException
register an open stream, which we close afterwards

Parameters:
instream -


Copyright B) 2005 Apache Web Services Project. All Rights Reserved.