Package org.eclipse.orion.server.cf.objects

Examples of org.eclipse.orion.server.cf.objects.Log.toJSON()


      JSONObject jsonResp = new JSONObject();
      Log log = new Log(appName, logName);
      log.setContents(response);
      log.setLocation(new URI(baseRequestLocation));
      jsonResp.put(instanceNo, log.toJSON());

      return new ServerStatus(Status.OK_STATUS, HttpServletResponse.SC_OK, jsonResp);
    } catch (Exception e) {
      String msg = NLS.bind("An error occured when performing operation {0}", commandName); //$NON-NLS-1$
      logger.error(msg, e);
View Full Code Here


          continue;
        }
        Log log = new Log(appName, logFileEntryParts[0]);
        log.setLocation(baseUri.resolve(log.getName()));
        log.setSize(logFileEntryParts[1]);
        logsJSON.put(log.toJSON());
      }
    } catch (Exception e) {
      String msg = NLS.bind("An error occured when performing operation {0}", commandName); //$NON-NLS-1$
      logger.error(msg, e);
      return new ServerStatus(IStatus.ERROR, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, msg, e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.