Search in sources :

Example 6 with ConnectionOpenRequest

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;
}
Also used : SLIC(com.openmeap.protocol.dto.SLIC) ApplicationInstallation(com.openmeap.protocol.dto.ApplicationInstallation) ConnectionOpenRequest(com.openmeap.protocol.dto.ConnectionOpenRequest) Application(com.openmeap.protocol.dto.Application)

Aggregations

ConnectionOpenRequest (com.openmeap.protocol.dto.ConnectionOpenRequest)6 SLIC (com.openmeap.protocol.dto.SLIC)4 Application (com.openmeap.protocol.dto.Application)3 ApplicationInstallation (com.openmeap.protocol.dto.ApplicationInstallation)3 ConnectionOpenResponse (com.openmeap.protocol.dto.ConnectionOpenResponse)3 ApplicationManagementService (com.openmeap.protocol.ApplicationManagementService)2 WebServiceException (com.openmeap.protocol.WebServiceException)2 Error (com.openmeap.protocol.dto.Error)1 Result (com.openmeap.protocol.dto.Result)1 InputStream (java.io.InputStream)1 Date (java.util.Date)1 Hashtable (java.util.Hashtable)1 Before (org.junit.Before)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1