Created
November 4, 2014 11:08
-
-
Save gowrishankarin/8317dfc541a1ad2981b3 to your computer and use it in GitHub Desktop.
Code Snippet for Receiving Rules Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.prodapt.m2m.rest.domain; | |
public class PIPError { | |
private String type; | |
private String message; | |
private String ruleId; | |
private String contentInstanceId; | |
private String content; | |
public PIPError() { | |
} | |
public String getType() { | |
return type; | |
} | |
public void setType(String type) { | |
this.type = type; | |
} | |
public String getMessage() { | |
return message; | |
} | |
public void setMessage(String message) { | |
this.message = message; | |
} | |
public String getRuleId() { | |
return ruleId; | |
} | |
public void setRuleId(String ruleId) { | |
this.ruleId = ruleId; | |
} | |
public String getContentInstanceId() { | |
return contentInstanceId; | |
} | |
public void setContentInstanceId(String contentInstanceId) { | |
this.contentInstanceId = contentInstanceId; | |
} | |
public String getContent() { | |
return content; | |
} | |
public void setContent(String content) { | |
this.content = content; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping(value = {"/pronet/rules/errors"}, method=RequestMethod.POST) | |
public ResponseEntity<PIPError> pipError(@RequestBody PIPError pipError) { | |
return new ResponseEntity<PIPError>(pipError, HttpStatus.CREATED); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment