org.drools.guvnor.server
Class GuvnorAPIServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.drools.guvnor.server.GuvnorAPIServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GuvnorAPIServlet
extends javax.servlet.http.HttpServlet

A servlet opening an API into the Guvnor services.

See Also:
Serialized Form

Constructor Summary
GuvnorAPIServlet()
           
 
Method Summary
static String deserialize(String deserializeUrl, String modelXml)
           
static Map<String,String[]> extract(String json)
           
static String inject(String json, Map<String,String> constraints)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Constructor Detail

GuvnorAPIServlet

public GuvnorAPIServlet()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

deserialize

public static String deserialize(String deserializeUrl,
                                 String modelXml)
                          throws IOException
Throws:
IOException

extract

public static Map<String,String[]> extract(String json)
                                    throws Exception
Throws:
Exception

inject

public static String inject(String json,
                            Map<String,String> constraints)
                     throws Exception
Throws:
Exception


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.