|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.sandev.tools.UIProcessor.FastXMLWSServlet
public class FastXMLWSServlet
A servlet for processing SAND messages serialized into XML with the XMLSerializer utility. This provides a simple and fast HTTP comms bridge. FastXMLWSServlet is an implementation of RequestAdaptor that calls through to a local CommBridge implementation for processing.
The FastXMLWSServlet is initialized with:
| Field Summary | |
|---|---|
protected org.sandev.basics.util.CommBridge |
commBridge
A reference to our local CommBridge we use for work. |
protected javax.servlet.http.HttpServlet |
controlServlet
The original servlet for this request. |
protected java.lang.String |
ownerNodeName
The name of the local node instance implementing CommBridge. |
protected org.sandev.basics.nodecommon.SingletonAccessor |
singletonAccessor
The SingletonAccessor we will use to bridge from here to the application processing. |
| Constructor Summary | |
|---|---|
FastXMLWSServlet()
Default ctor does nothing. |
|
| Method Summary | |
|---|---|
protected void |
debug(java.lang.String text)
Dump out the given text to the debug log. |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Pass HTTP 'GET' request over to handleRequest method. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Pass HTTP 'POST' request over to handleRequest method. |
protected void |
dumpTraceIfUseful(java.lang.Throwable e)
Print a stack trace for the given exception unless it is due to the app not being ready where this is just log noise. |
protected org.sandev.basics.nodecommon.SandRoot |
findSandRoot()
Locate the SandRoot or throw if it can't be found. |
protected org.sandev.basics.util.CommBridge |
getCommBridge()
Initializing accessor for commBridge. |
javax.servlet.http.HttpServlet |
getControlServlet()
accessor for controlServlet |
java.lang.String |
getOwnerNodeName()
accessor for ownerNodeName |
org.sandev.basics.nodecommon.SingletonAccessor |
getSingletonAccessor()
accessor for singletonAccessor |
protected void |
handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Use our CommBridge to process the request. |
protected void |
returnText(org.sandev.basics.sandmessages.AuthWrapper aw,
javax.servlet.http.HttpServletResponse res)
Write the XML for the given message as the response. |
void |
setCharSerializerClassName(java.lang.String val)
This method does nothing and is provided just for initialization signature completeness. |
void |
setControlServlet(javax.servlet.http.HttpServlet val)
mutator for controlServlet |
void |
setFixedMode(int val)
This method does nothing and is provided just for initialization signature completeness. |
void |
setLocalLaunch(boolean val)
This method does nothing and is provided just for initialization signature completeness. |
void |
setNodeInstanceFactoryClassName(java.lang.String val)
This method does nothing and is provided just for initialization signature completeness. |
void |
setOwnerNodeName(java.lang.String val)
mutator for ownerNodeName |
void |
setSandUIFileName(java.lang.String name)
This method does nothing and is provided just for initialization signature completeness. |
void |
setSingletonAccessor(org.sandev.basics.nodecommon.SingletonAccessor val)
mutator for singletonAccessor |
void |
setUIFormAdaptorClassName(java.lang.String val)
This method does nothing and is provided just for initialization signature completeness. |
protected void |
verifyRunning(org.sandev.basics.util.CommBridge cb)
If the CommBridge is a node that is not currently running, then throw an exception after waiting for a few moments. |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.http.HttpServlet controlServlet
protected java.lang.String ownerNodeName
protected org.sandev.basics.nodecommon.SingletonAccessor singletonAccessor
protected org.sandev.basics.util.CommBridge commBridge
| Constructor Detail |
|---|
public FastXMLWSServlet()
| Method Detail |
|---|
public javax.servlet.http.HttpServlet getControlServlet()
public void setControlServlet(javax.servlet.http.HttpServlet val)
setControlServlet in interface GeneratedServletInterfacepublic void setSandUIFileName(java.lang.String name)
setSandUIFileName in interface GeneratedServletInterfacepublic void setCharSerializerClassName(java.lang.String val)
setCharSerializerClassName in interface GeneratedServletInterfacepublic void setUIFormAdaptorClassName(java.lang.String val)
setUIFormAdaptorClassName in interface GeneratedServletInterfacepublic void setNodeInstanceFactoryClassName(java.lang.String val)
public void setFixedMode(int val)
setFixedMode in interface GeneratedServletInterfacepublic java.lang.String getOwnerNodeName()
public void setOwnerNodeName(java.lang.String val)
setOwnerNodeName in interface GeneratedServletInterfacepublic void setLocalLaunch(boolean val)
setLocalLaunch in interface GeneratedServletInterfacepublic org.sandev.basics.nodecommon.SingletonAccessor getSingletonAccessor()
public void setSingletonAccessor(org.sandev.basics.nodecommon.SingletonAccessor val)
setSingletonAccessor in interface GeneratedServletInterface
protected org.sandev.basics.util.CommBridge getCommBridge()
throws org.sandev.basics.structs.SandException
org.sandev.basics.structs.SandException
protected org.sandev.basics.nodecommon.SandRoot findSandRoot()
throws org.sandev.basics.structs.SandException
org.sandev.basics.structs.SandException
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doGet in class javax.servlet.http.HttpServlet
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
doPost in class javax.servlet.http.HttpServlet
protected void handleRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
protected void returnText(org.sandev.basics.sandmessages.AuthWrapper aw,
javax.servlet.http.HttpServletResponse res)
protected void verifyRunning(org.sandev.basics.util.CommBridge cb)
throws org.sandev.basics.structs.SandException
org.sandev.basics.structs.SandExceptionprotected void debug(java.lang.String text)
protected void dumpTraceIfUseful(java.lang.Throwable e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||