Package org.parse4j.command

Examples of org.parse4j.command.ParseCommand


 
  public void save() throws ParseException {

    if(!isDirty) return;

    ParseCommand command;
    if(objectId == null) {
      command = new ParsePostCommand(getEndPoint());
    }
    else {
      command =  new ParsePutCommand(getEndPoint(), getObjectId());
    }
   
    command.setData(getParseData());
    ParseResponse response = command.perform();
    if(!response.isFailed()) {
      JSONObject jsonResponse = response.getJsonObject();
      if (jsonResponse == null) {
        LOGGER.error("Empty response");
        throw response.getException();
View Full Code Here


 
  public void delete() throws ParseException {
   
    if(objectId == null) return;
   
    ParseCommand command = new ParseDeleteCommand(getEndPoint(), getObjectId());
    ParseResponse response = command.perform();
    if(response.isFailed()) {
      throw response.getException();
    }
   
    this.updatedAt = null;
View Full Code Here

TOP

Related Classes of org.parse4j.command.ParseCommand

Copyright © 2018 www.massapicom. 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.