org.w3c.jigsaw.servlet
Class RemoteServletWrapper
java.lang.Object
|
+--org.w3c.tools.resources.AttributeHolder
|
+--org.w3c.tools.resources.Resource
|
+--org.w3c.tools.resources.FramedResource
|
+--org.w3c.jigsaw.servlet.ServletWrapper
|
+--org.w3c.jigsaw.servlet.RemoteServletWrapper
- public class RemoteServletWrapper
- extends ServletWrapper
Field Summary |
protected static int |
ATTR_SERVLET_BASE
Attribute index - The servlet content base. |
protected ServletLoader |
loader
The ServletLoader instance for loading that servlet. |
Method Summary |
protected void |
checkServlet()
Check the servlet class, ans try to initialize it. |
java.lang.String |
getServletBase()
Get the remote servlet URL base. |
protected ServletLoader |
getServletLoader()
Get or create a suitable ServletLoader instance to load that servlet. |
protected boolean |
launchServlet()
Initialize the servlet. |
void |
setValue(int idx,
java.lang.Object value)
|
Methods inherited from class org.w3c.jigsaw.servlet.ServletWrapper |
acceptUnload,
createNewLocalServletLoader,
destroyServlet,
getInitParameter,
getInitParameterNames,
getLocalServletLoader,
getServlet,
getServletClass,
getServletContext,
getServletDirectory,
getServletParameters,
getServletTimeout,
getSessionContext,
initialize,
invalidateAllSession,
isInited,
isWrappingAServlet,
launchServlet,
notifyUnload,
service,
setValueOfSuperClass |
Methods inherited from class org.w3c.tools.resources.FramedResource |
addAttributeChangedListener,
addStructureChangedListener,
collectFramesReference,
delete,
disableEvent,
displayEvent,
enableEvent,
eventDisabled,
fireAttributeChangeEvent,
fireStructureChangedEvent,
fireStructureChangedEvent,
frameAdded,
frameModified,
frameRemoved,
getClone,
getFrame,
getFrame,
getFrameReference,
getFrameReference,
getFramesReference,
getOid,
lookup,
markModified,
perform,
performFrames,
postAttributeChangeEvent,
postEvent,
postStructureChangedEvent,
postStructureChangedEvent,
processEvent,
registerFrame,
registerFrameIfNone,
removeAttributeChangedListener,
removeStructureChangedListener,
unregisterFrame |
Methods inherited from class org.w3c.tools.resources.Resource |
checkMultipleLock,
collectFrames,
getContext,
getFrame,
getFrames,
getHelpURL,
getHelpURL,
getIdentifier,
getLastModified,
getParent,
getResourceReference,
getServer,
getSpace,
getSpaceEntry,
getStoreEntry,
getURLPath,
getValue,
getValue,
isInitialized,
isUnloaded,
setContext,
setContext,
setValue,
updateAttributes |
Methods inherited from class org.w3c.tools.resources.AttributeHolder |
definesAttribute,
definesAttribute,
getAttributes,
getBoolean,
getChar,
getClone,
getClone,
getDouble,
getFloat,
getInt,
getLong,
getString,
getValue,
initialize,
lookupAttribute,
pickle,
print,
setBoolean,
setChar,
setDouble,
setFloat,
setInt,
setLong,
setString,
setValue,
unpickle,
unpickle,
unpickle,
unpickleInstance,
unpickleInstance |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ATTR_SERVLET_BASE
protected static int ATTR_SERVLET_BASE
- Attribute index - The servlet content base.
loader
protected ServletLoader loader
- The ServletLoader instance for loading that servlet.
RemoteServletWrapper
public RemoteServletWrapper()
checkServlet
protected void checkServlet()
throws java.lang.ClassNotFoundException,
javax.servlet.ServletException
- Check the servlet class, ans try to initialize it.
- Throws:
- java.lang.ClassNotFoundException - if servlet class can't be found.
- javax.servlet.ServletException - if servlet can't be initialized.
- Overrides:
- checkServlet in class ServletWrapper
getServletLoader
protected ServletLoader getServletLoader()
- Get or create a suitable ServletLoader instance to load that servlet.
- Returns:
- A ServletLoader instance.
getServletBase
public java.lang.String getServletBase()
- Get the remote servlet URL base.
- Returns:
- The String encoded base URL for that servlet, or null
if undefined.
setValue
public void setValue(int idx,
java.lang.Object value)
- Overrides:
- setValue in class ServletWrapper
launchServlet
protected boolean launchServlet()
throws java.lang.ClassNotFoundException,
javax.servlet.ServletException
- Initialize the servlet.
- Throws:
- java.lang.ClassNotFoundException - if servlet class can't be found.
- javax.servlet.ServletException - if servlet can't be initialized.
- Overrides:
- launchServlet in class ServletWrapper