@WebServlet(value="/advancedDiscover") public class JsonAdvancedDiscovererServlet extends AbstractJsonDiscoverer
JsonAdvancedDiscoverer.
 
 Answers to POST calls, receiving as input a JSON document including the set
 of JSON documents representing different JSON-based Web services (see paramsPattern 
 to know the pattern of this param). A metamodel is discovered out of these
 JSON documents. The discovered metamodel is returned as both image and xmi, 
 both of them encoded as base64.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | ADVANCEDDISCOVERER_FOLDERThe ID for this servlet which will be used to access to the working directory | 
| private static java.lang.String | folderNameName of the folder where the temp files will be stored | 
| private static java.lang.String | paramsPatternThis pattern is used to analyze the params
 The format is sources[JSON_SOURCE_NAME][SOMETHING]([])? | 
| private static long | serialVersionUID | 
dotExePath, jsonParam, properties, serverURL, version, workingDir| Constructor and Description | 
|---|
| JsonAdvancedDiscovererServlet() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JsonSourceSet | digestSources(javax.servlet.http.HttpServletRequest request)Digest the parameters of the request according to the pattern defined in
  paramsPattern | 
| protected void | doPost(javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response)Performs a POST call to this servlet. | 
| void | init()Uses the super class init method and additionally initializes  folderName | 
addResponseOptions, digestExceptionMessage, doOptions, drawModel, drawModel, drawObjectModel, encodeToString, encodeToString, encodeToStringdoDelete, doGet, doHead, doPut, doTrace, getLastModified, service, serviceprivate static final long serialVersionUID
public static final java.lang.String ADVANCEDDISCOVERER_FOLDER
private static java.lang.String folderName
private static java.lang.String paramsPattern
public void init()
          throws javax.servlet.ServletException
folderNameinit in class AbstractJsonDiscovererjavax.servlet.ServletExceptionAbstractJsonDiscoverer.init()protected JsonSourceSet digestSources(javax.servlet.http.HttpServletRequest request)
paramsPatternrequest - The request from which the params are obtainedJsonSourceSetprotected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
 Receives a set of JSON documents representing different JSON-based Web services 
 (see paramsPattern to know the pattern of this param)
 
 Discovers a metamodel (using JsonAdvancedDiscoverer) and returns two params: 
 
doPost in class javax.servlet.http.HttpServletrequest - The Request of the callresponse - The Response to the calljavax.servlet.ServletExceptionjava.io.IOExceptionHttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)