Uses of Class
org.apache.sling.scripting.jsp.jasper.JasperException
Package
Description
This package should only be used by compiled JSP scripts when being executed on the platform.
-
Uses of JasperException in org.apache.sling.scripting.jsp.jasper
Modifier and TypeMethodDescriptionString[]
JspCompilationContext.getTldLocation
(String uri) Gets the 'location' of the TLD associated with the given taglib 'uri'.Class<?>
JspCompilationContext.load()
-
Uses of JasperException in org.apache.sling.scripting.jsp.jasper.compiler
Modifier and TypeMethodDescriptionvoid
BeanRepository.addBean
(org.apache.sling.scripting.jsp.jasper.compiler.Node.UseBean n, String s, String type, String scope) void
TagPluginManager.apply
(org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page, ErrorDispatcher err, PageInfo pageInfo) static void
JspUtil.checkAttributes
(String typeOfTag, org.apache.sling.scripting.jsp.jasper.compiler.Node n, JspUtil.ValidAttribute[] validAttributes, ErrorDispatcher err) Checks if all mandatory attributes are present and if all attributes present have valid names.static void
JspUtil.checkScope
(String scope, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) Checks to see if the given scope is valid.void
Compiler.compile()
Compile the jsp file from the current engine contextvoid
Compiler.compile
(boolean compileClass) Compile the jsp file from the current engine context.void
Compiler.compile
(boolean compileClass, boolean jspcMode) Compile the jsp file from the current engine context.static void
TextOptimizer.concatenate
(Compiler compiler, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page) static JavacErrorDetail
ErrorDispatcher.createJavacError
(String fname, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page, StringBuffer errMsgBuf, int lineNum) static JavacErrorDetail
ErrorDispatcher.createJavacError
(String fname, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page, StringBuffer errMsgBuf, int lineNum, JspCompilationContext ctxt) JspConfig.findJspProperty
(String uri) Find a property that best matches the supplied resource.protected abstract void
Compiler.generateClass
(String[] smap) Compile the servlet from .java file to .class fileprotected void
JDTCompiler.generateClass
(String[] smap) Compile the servlet from .java file to .class fileBeanRepository.getBeanType
(String bean) static InputStream
JspUtil.getInputStream
(String fname, JarFile jarFile, JspCompilationContext ctxt, ErrorDispatcher err) abstract String[]
TldLocationsCache.getLocation
(String uri) static String
JspUtil.getTagHandlerClassName
(String path, ErrorDispatcher err) Gets the fully-qualified class name of the tag handler corresponding to the given tag file path.boolean
To find out if an uri matches an url pattern in jsp config.void
ErrorDispatcher.javacError
(String errorReport, Exception e) void
ErrorDispatcher.javacError
(JavacErrorDetail[] javacErrors) void
ErrorHandler.javacError
(String errorReport, Exception exception) Processes the given javac error report and exception.void
ErrorHandler.javacError
(JavacErrorDetail[] details) Processes the given javac compilation errors.void
void
void
void
void
void
void
void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Mark where, String errCode, String arg) void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Mark where, String errCode, String arg1, String arg2) void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Mark where, String errCode, String arg1, String arg2, String arg3) void
void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Node n, String errCode, String arg) void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Node n, String errCode, String arg, Exception e) void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Node n, String errCode, String arg1, String arg2) void
ErrorDispatcher.jspError
(org.apache.sling.scripting.jsp.jasper.compiler.Node n, String errCode, String arg1, String arg2, String arg3) void
Processes the given JSP parse error.void
Processes the given JSP parse error.static void
ELFunctionMapper.map
(Compiler compiler, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page) Creates the functions mappers for all EL expressions in the JSP page.static JavacErrorDetail[]
ErrorDispatcher.parseJavacErrors
(String errMsg, String fname, org.apache.sling.scripting.jsp.jasper.compiler.Node.Nodes page) Parses the given error message into an array of javac compilation error messages (one per javac compilation error line number).void
PageInfo.setAutoFlush
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) void
PageInfo.setBufferValue
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) void
PageInfo.setDeferredSyntaxAllowedAsLiteral
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) void
PageInfo.setIsELIgnored
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) void
PageInfo.setIsErrorPage
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) void
PageInfo.setIsThreadSafe
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) void
PageInfo.setLanguage
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) void
PageInfo.setSession
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err) void
PageInfo.setTrimDirectiveWhitespaces
(String value, org.apache.sling.scripting.jsp.jasper.compiler.Node n, ErrorDispatcher err, boolean pagedir) static void
JspUtil.validateExpressions
(org.apache.sling.scripting.jsp.jasper.compiler.Mark where, String expressions, Class expectedType, javax.el.FunctionMapper functionMapper, ErrorDispatcher err) Deprecated.now delegated to the org.apache.el Package -
Uses of JasperException in org.apache.sling.scripting.jsp.jasper.runtime
Modifier and TypeMethodDescriptionstatic Object
static void
JspRuntimeLibrary.createTypedArray
(String propertyName, Object bean, Method method, String[] values, Class t, Class propertyEditorClass) Create a typed array.static Method
JspRuntimeLibrary.getReadMethod
(Class beanClass, String prop) static Object
JspRuntimeLibrary.getValueFromBeanInfoPropertyEditor
(Class attrClass, String attrName, String attrValue, Class propertyEditorClass) static Object
JspRuntimeLibrary.getValueFromPropertyEditorManager
(Class attrClass, String attrName, String attrValue) static Method
JspRuntimeLibrary.getWriteMethod
(Class beanClass, String prop) static Object
JspRuntimeLibrary.handleGetProperty
(Object o, String prop) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, boolean value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, byte value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, char value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, double value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, float value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, int value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, long value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, short value) static void
JspRuntimeLibrary.handleSetProperty
(Object bean, String prop, Object value) static void
JspRuntimeLibrary.handleSetPropertyExpression
(Object bean, String prop, String expression, javax.servlet.jsp.PageContext pageContext, ProtectedFunctionMapper functionMapper) Use proprietaryEvaluate public static void handleSetPropertyExpression(Object bean, String prop, String expression, PageContext pageContext, VariableResolver variableResolver, FunctionMapper functionMapper ) throws JasperException { try { Method method = getWriteMethod(bean.getClass(), prop); method.invoke(bean, new Object[] { pageContext.getExpressionEvaluator().evaluate( expression, method.getParameterTypes()[0], variableResolver, functionMapper, null ) }); } catch (Exception ex) { throw new JasperException(ex); } }static void
JspRuntimeLibrary.introspect
(Object bean, javax.servlet.ServletRequest request) static void
JspRuntimeLibrary.introspecthelper
(Object bean, String prop, String value, javax.servlet.ServletRequest request, String param, boolean ignoreMethodNF) JspRuntimeLibrary.PrivilegedIntrospectHelper.run()
-
Uses of JasperException in org.apache.sling.scripting.jsp.jasper.servlet
Modifier and TypeMethodDescriptionClass<?>
JspServletWrapper.loadTagFile()
Compile (if needed) and load a tag fileClass<?>
JspServletWrapper.loadTagFilePrototype()
Compile and load a prototype for the Tag file.ModifierConstructorDescriptionJspServletWrapper
(javax.servlet.ServletContext servletContext, Options options, String tagFilePath, javax.servlet.jsp.tagext.TagInfo tagInfo, JspRuntimeContext rctxt, URL tagFileJarUrl) JspServletWrapper for tag files. -
Uses of JasperException in org.apache.sling.scripting.jsp.jasper.xmlparser
Modifier and TypeMethodDescriptionstatic Object[]
XMLEncodingDetector.getEncoding
(String fname, JarFile jarFile, JspCompilationContext ctxt, ErrorDispatcher err) Autodetects the encoding of the XML document supplied by the given input stream.ParserUtils.parseXMLDocument
(String uri, InputStream is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.ParserUtils.parseXMLDocument
(String uri, InputSource is) Parse the specified XML document, and return aTreeNode
that corresponds to the root node of the document tree.XMLEncodingDetector.scanPseudoAttribute
(boolean scanningTextDecl, XMLString value) Scans a pseudo attribute.