Пример #1
0
  @Override
  protected void doReceive(Message message) throws Exception {
    String command = message.getString("command");
    String servletContextName = message.getString("servletContextName");

    if (command.equals("undeploy") && servletContextName.equals(getServletContextName())) {
      RestLocalServiceUtil.clearService();

      RestServiceUtil.clearService();
    }
  }
Пример #2
0
 public JSONObject delete(String path) {
   return RestLocalServiceUtil.delete(path);
 }
Пример #3
0
 public JSONObject updateStatus(String body) {
   return RestLocalServiceUtil.updateStatus(body);
 }
Пример #4
0
 public JSONObject post(String path, String post, String username, String password) {
   return RestLocalServiceUtil.post(path, post, username, password);
 }
Пример #5
0
 public JSONObject post(String path, String post) {
   return RestLocalServiceUtil.post(path, post);
 }
Пример #6
0
 public JSONObject get(String path, String username, String password) {
   return RestLocalServiceUtil.get(path, username, password);
 }
Пример #7
0
 public JSONObject get(String path) {
   return RestLocalServiceUtil.get(path);
 }