bsh.servlet
Class BshServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
bsh.servlet.BshServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class BshServlet
- extends javax.servlet.http.HttpServlet
This file is part of BeanShell - www.beanshell.org
- Author:
- Pat Niemeyer
- See Also:
- Serialized Form
|
Field Summary |
(package private) static java.lang.String |
bshVersion
|
(package private) static java.lang.String |
exampleScript
|
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static java.lang.String |
escape(java.lang.String value)
Convert special characters to entities for XML output |
(package private) java.lang.Object |
evalScript(java.lang.String script,
java.lang.StringBuffer scriptOutput,
boolean captureOutErr,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
(package private) java.lang.String |
formatScriptResultHTML(java.lang.String script,
java.lang.Object result,
java.lang.Exception error,
java.lang.StringBuffer scriptOutput)
|
(package private) static java.lang.String |
getBshVersion()
|
(package private) void |
sendHTML(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String script,
java.lang.Exception scriptError,
java.lang.Object scriptResult,
java.lang.StringBuffer scriptOutput,
boolean capture)
|
(package private) void |
sendRaw(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception scriptError,
java.lang.Object scriptResult,
java.lang.StringBuffer scriptOutput)
|
(package private) java.lang.String |
showScriptContextHTML(java.lang.String s,
int lineNo,
int context)
|
| 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 |
bshVersion
static java.lang.String bshVersion
exampleScript
static java.lang.String exampleScript
BshServlet
public BshServlet()
getBshVersion
static java.lang.String getBshVersion()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
sendHTML
void sendHTML(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String script,
java.lang.Exception scriptError,
java.lang.Object scriptResult,
java.lang.StringBuffer scriptOutput,
boolean capture)
throws java.io.IOException
- Throws:
java.io.IOException
sendRaw
void sendRaw(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Exception scriptError,
java.lang.Object scriptResult,
java.lang.StringBuffer scriptOutput)
throws java.io.IOException
- Throws:
java.io.IOException
formatScriptResultHTML
java.lang.String formatScriptResultHTML(java.lang.String script,
java.lang.Object result,
java.lang.Exception error,
java.lang.StringBuffer scriptOutput)
throws java.io.IOException
- Throws:
java.io.IOException
showScriptContextHTML
java.lang.String showScriptContextHTML(java.lang.String s,
int lineNo,
int context)
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
evalScript
java.lang.Object evalScript(java.lang.String script,
java.lang.StringBuffer scriptOutput,
boolean captureOutErr,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws EvalError
- Throws:
EvalError
escape
public static java.lang.String escape(java.lang.String value)
- Convert special characters to entities for XML output