org.ofbiz.webapp.event
Class WfsEventHandler
java.lang.Object
org.ofbiz.webapp.event.WfsEventHandler
- All Implemented Interfaces:
- EventHandler
public class WfsEventHandler
- extends java.lang.Object
- implements EventHandler
WfsEventHandler - WFS Event Handler implementation
|
Method Summary |
static freemarker.template.Template |
getDocTemplate(java.lang.String fileUrl)
|
void |
init(javax.servlet.ServletContext context)
Initializes the handler. |
java.lang.String |
invoke(ConfigXMLReader.Event event,
ConfigXMLReader.RequestMap requestMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invoke the web event |
static freemarker.template.Configuration |
makeDefaultOfbizConfig()
|
static java.lang.String |
processWfsEntity(java.lang.String entityName,
org.w3c.dom.Node domNode,
java.lang.String templatePath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
InputTemplateUrl
public static final java.lang.String InputTemplateUrl
- See Also:
- Constant Field Values
WfsEventHandler
public WfsEventHandler()
init
public void init(javax.servlet.ServletContext context)
throws EventHandlerException
- Description copied from interface:
EventHandler
- Initializes the handler. Since handlers use the singleton pattern this method should only be called
the first time the handler is used.
- Specified by:
init in interface EventHandler
- Parameters:
context - ServletContext This may be needed by the handler in order to lookup properties or XML
definition files for rendering pages or handler options.
- Throws:
EventHandlerException- See Also:
EventHandler.init(javax.servlet.ServletContext)
invoke
public java.lang.String invoke(ConfigXMLReader.Event event,
ConfigXMLReader.RequestMap requestMap,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws EventHandlerException
- Invoke the web event
- Specified by:
invoke in interface EventHandler
- Parameters:
event - Contains information about what to executerequestMap - Contains information about the request-map the event was called fromrequest - The servlet request objectresponse - The servlet response object
- Returns:
- String Result code
- Throws:
EventHandlerException
processWfsEntity
public static java.lang.String processWfsEntity(java.lang.String entityName,
org.w3c.dom.Node domNode,
java.lang.String templatePath)
throws freemarker.template.TemplateException,
java.io.FileNotFoundException,
java.io.IOException,
java.net.URISyntaxException
- Throws:
freemarker.template.TemplateException
java.io.FileNotFoundException
java.io.IOException
java.net.URISyntaxException
getDocTemplate
public static freemarker.template.Template getDocTemplate(java.lang.String fileUrl)
throws java.io.FileNotFoundException,
java.io.IOException,
freemarker.template.TemplateException,
java.net.URISyntaxException
- Throws:
java.io.FileNotFoundException
java.io.IOException
freemarker.template.TemplateException
java.net.URISyntaxException
makeDefaultOfbizConfig
public static freemarker.template.Configuration makeDefaultOfbizConfig()
throws freemarker.template.TemplateException,
java.io.IOException
- Throws:
freemarker.template.TemplateException
java.io.IOException