diff options
Diffstat (limited to 'projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java')
| -rw-r--r-- | projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java | 59 |
1 files changed, 26 insertions, 33 deletions
diff --git a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java index 957cf25..7e3c624 100644 --- a/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java +++ b/projects/net.wotonomy.web/src/main/java/net/wotonomy/web/WORequestHandler.java @@ -21,44 +21,37 @@ package net.wotonomy.web; import net.wotonomy.foundation.internal.NetworkClassLoader; /** -* A pure java implementation that corresponds -* to the abstract class WORequestHandler. -* -* @author michael@mpowers.net -* @author $Author: cgruber $ -* @version $Revision: 905 $ -*/ -public abstract class WORequestHandler -{ + * A pure java implementation that corresponds to the abstract class + * WORequestHandler. + * + * @author michael@mpowers.net + * @author $Author: cgruber $ + * @version $Revision: 905 $ + */ +public abstract class WORequestHandler { private NetworkClassLoader loader; - + /** - * Default constructor. - */ - public WORequestHandler() - { - loader = new NetworkClassLoader( WOApplication.application().getClass().getClassLoader() ); + * Default constructor. + */ + public WORequestHandler() { + loader = new NetworkClassLoader(WOApplication.application().getClass().getClassLoader()); } - + /** - * Dispatches the request and returns the response. - */ - abstract public WOResponse handleRequest (WORequest aRequest); - + * Dispatches the request and returns the response. + */ + abstract public WOResponse handleRequest(WORequest aRequest); + /** - * Gets the specified class, loading it if it has not already been - * loaded or if it has been modified. Returns null if not found. - * Because this method is not in the specification, it has only - * package access. - */ - Class loadClass( String aName ) - { - try - { - return loader.loadClass( aName, true ); - } - catch ( ClassNotFoundException cnfe ) - { + * Gets the specified class, loading it if it has not already been loaded or if + * it has been modified. Returns null if not found. Because this method is not + * in the specification, it has only package access. + */ + Class loadClass(String aName) { + try { + return loader.loadClass(aName, true); + } catch (ClassNotFoundException cnfe) { return null; } } |
