use of com.openmeap.protocol.dto.ConnectionOpenRequest in project OpenMEAP by OpenMEAP.
the class ApplicationManagementServlet method createConnectionOpenRequest.
private ConnectionOpenRequest createConnectionOpenRequest(HttpServletRequest req) {
ConnectionOpenRequest request = new ConnectionOpenRequest();
request.setApplication(new Application());
Application app = request.getApplication();
app.setVersionId(req.getParameter(UrlParamConstants.APP_VERSION));
app.setName(req.getParameter(UrlParamConstants.APP_NAME));
app.setHashValue(req.getParameter(UrlParamConstants.APPARCH_HASH));
app.setInstallation(new ApplicationInstallation());
app.getInstallation().setUuid(req.getParameter(UrlParamConstants.DEVICE_UUID));
request.setSlic(new SLIC());
SLIC slic = request.getSlic();
slic.setVersionId(req.getParameter(UrlParamConstants.SLIC_VERSION));
return request;
}
Aggregations