|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wheel.AbstractEngine wheel.testing.MockEngine
public class MockEngine
Constructor Summary | |
---|---|
MockEngine()
|
Method Summary | |
---|---|
java.util.Set |
_getAvailableCssFiles()
Intended for internal use. |
java.util.Set |
_getAvailableJsFiles()
Intended for internal use. |
java.text.DateFormat |
_getDateFormat()
|
IMessagesSource |
_getMessagesSource()
Intended for internal use. |
org.xmlpull.v1.XmlSerializer |
_getXmlSerializer()
Intended for internal use. |
void |
_setDateFormat(java.text.DateFormat dateFormat)
|
void |
_setMessagesSource(IMessagesSource messagesSource)
Intended for internal use. |
void |
addErrorMapping(java.lang.String exceptionClassName,
java.lang.String errorPageName)
Adds a mapping that will map exception classnames to page names. |
java.lang.String |
getBasePackage()
The base package name for page loading. |
javax.servlet.ServletContext |
getContext()
The ServletContext instance. |
java.lang.String |
getCssPath()
Server root-based path to css-files. |
org.w3c.dom.Document |
getDocument()
|
java.lang.String |
getEncoding()
The encoding used during this request cycle for all output as well as URL encoding. |
java.lang.Throwable |
getError()
Active error for this request process cycle. |
StandaloneComponent |
getErrorPage()
The error page to render if an exception is caugth. |
java.lang.String |
getJsPath()
Server root-based path to js-files. |
java.util.Locale |
getLocale()
|
IObjectStore |
getObjectStore()
Gives access to the internal object store that is used with automatic persistence. |
StandaloneComponent |
getpage()
|
javax.servlet.http.HttpServletRequest |
getRequest()
The active HttpSerlvetRequest for this request. |
IResourceManager |
getResourceManager()
|
javax.servlet.http.HttpServletResponse |
getResponse()
The active HttpServletResponse for this request. |
javax.servlet.http.HttpSession |
getSession()
|
boolean |
isAjaxRequest()
|
StandaloneComponent |
loadPage(java.lang.String pagePath)
This method can be used to load Page-classes when the page path is known. |
void |
processRequestInternal()
|
protected java.util.Map |
readRequestParameters(javax.servlet.http.HttpServletRequest request)
|
void |
reset()
|
void |
setBasePackageForPages(java.lang.String basePackageForPages)
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding to use during this request cycle. |
void |
setError(java.lang.Throwable error)
Sets the error that will be accessible to an error page. |
void |
setErrorPage(StandaloneComponent errorPage)
Sets the page to render if an exception is caught. |
void |
setLocale(java.util.Locale locale)
Sets the Locale for this request cycle. |
Methods inherited from class wheel.AbstractEngine |
---|
getCurrentServer, processRequest, setCurrentServer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockEngine() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
Method Detail |
---|
public org.xmlpull.v1.XmlSerializer _getXmlSerializer() throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
IEngine
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public javax.servlet.ServletContext getContext()
IEngine
public javax.servlet.http.HttpServletRequest getRequest()
IEngine
public javax.servlet.http.HttpServletResponse getResponse()
IEngine
public java.util.Set _getAvailableCssFiles()
IEngine
public java.util.Set _getAvailableJsFiles()
IEngine
public java.lang.String getEncoding()
IEngine
public void setEncoding(java.lang.String encoding)
IEngine
public javax.servlet.http.HttpSession getSession()
public void processRequestInternal()
processRequestInternal
in class AbstractEngine
public IObjectStore getObjectStore()
IEngine
public java.lang.String getBasePackage()
IEngine
public java.lang.String getCssPath()
IEngine
public java.lang.String getJsPath()
IEngine
public org.w3c.dom.Document getDocument() throws java.io.IOException, org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public void reset() throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public void setError(java.lang.Throwable error)
IEngine
public java.lang.Throwable getError()
IEngine
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
IEngine
public IMessagesSource _getMessagesSource()
IEngine
public void _setMessagesSource(IMessagesSource messagesSource)
IEngine
public StandaloneComponent loadPage(java.lang.String pagePath)
IEngine
pagePath
- The path to wanted page in the URL-format, ie. stripped of basePackageForPages. Example: "FrontPage" or "admin/TestPage".
public java.text.DateFormat _getDateFormat()
public void _setDateFormat(java.text.DateFormat dateFormat)
public StandaloneComponent getErrorPage()
IEngine
public void setErrorPage(StandaloneComponent errorPage)
IEngine
public void addErrorMapping(java.lang.String exceptionClassName, java.lang.String errorPageName)
IEngine
exceptionClassName
- The full classname of the mapped exception.errorPageName
- Name of the page to render.public void setBasePackageForPages(java.lang.String basePackageForPages)
protected java.util.Map readRequestParameters(javax.servlet.http.HttpServletRequest request)
readRequestParameters
in class AbstractEngine
public boolean isAjaxRequest()
public IResourceManager getResourceManager()
public StandaloneComponent getpage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |