@WebServlet(value="/feedback") public class FeedbackServlet extends AbstractJsonDiscoverer
Answers to POST calls, receiving as input a comment and the JSON document that triggered the feedback. Optionally the images for metamodel/model can also be attached
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
commentParam
The param holding the comment from the user
|
static java.lang.String |
FEEDBACK_ID
The ID for this servlet which will be used to access to the working directory
|
static java.lang.String |
jsonParam
The param holding the JSON code for the feedback
|
static java.lang.String |
metamodelParam
The param to get the discovered metamodel (as picture) which is the subject of the feedback.
|
static java.lang.String |
metamodelParamFile
The param to get the discovered metamodel (as ECORE file) which is the subject of the feedback
It is usually transferred in base64 encoding (as it was received like that by the client)
|
static java.lang.String |
modelParam
The param to get the discovered model (as picture) which is the subject of the feedback
It is usually transferred in base64 encoding (as it was received like that by the client)
|
static java.lang.String |
modelParamFile
The param to get the discovered model (as XMI file) which is the subject of the feedback
It is usually transferred in base64 encoding (as it was received like that by the client)
|
private static long |
serialVersionUID |
static java.lang.String |
sourceParam
Param to get the source of the feedback.
|
dotExePath, properties, serverURL, version, workingDir
Constructor and Description |
---|
FeedbackServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Performs a POST call to this servlet.
|
addResponseOptions, digestExceptionMessage, doOptions, drawModel, drawModel, drawObjectModel, encodeToString, encodeToString, encodeToString, init
doDelete, doGet, doHead, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
public static final java.lang.String FEEDBACK_ID
public static final java.lang.String sourceParam
For instance: simplediscoverer, advanced discoverer, etc. It is set by the client
public static final java.lang.String commentParam
public static final java.lang.String jsonParam
public static final java.lang.String metamodelParam
It is usually transferred in base64 encoding (as it was received like that by the client)
public static final java.lang.String metamodelParamFile
It is usually transferred in base64 encoding (as it was received like that by the client)
public static final java.lang.String modelParam
It is usually transferred in base64 encoding (as it was received like that by the client)
public static final java.lang.String modelParamFile
It is usually transferred in base64 encoding (as it was received like that by the client)
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
Receives the feedback from the user, including his/her comment, the json document and optionally the images.
doPost
in class javax.servlet.http.HttpServlet
request
- The Request of the callresponse
- The Response to the calljavax.servlet.ServletException
java.io.IOException
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)