@WebServlet(value="/calculatePath") public class JsonPathCalculatorServlet extends JsonComposerServlet
JsonComposerServlet
.
Answers to POST HTTP calls. Source and target nodes ar given as input and paths (if exists) are returned as sequence diagrams indicating the set of calls to follow such path.
As the web application does not save the state, this servlet repeats the
functinality provided by JsonComposerServlet
.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
dotExePath, jsonParam, properties, serverURL, version, workingDir
Constructor and Description |
---|
JsonPathCalculatorServlet() |
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.
|
digestSources
addResponseOptions, digestExceptionMessage, doOptions, drawModel, drawModel, drawObjectModel, encodeToString, encodeToString, encodeToString, init
doDelete, doGet, doHead, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
protected 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 plus the source/target nodes.
Calculates a path between source/target nodes (using CoreographyBuilder
) and returns
a sequence diagram (if the path exists) indicanting the calls to perform to obtain the
target node from the source node
doPost
in class JsonComposerServlet
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)