Skip to content

Instantly share code, notes, and snippets.

@gowrishankarin
Created November 4, 2014 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gowrishankarin/8317dfc541a1ad2981b3 to your computer and use it in GitHub Desktop.
Save gowrishankarin/8317dfc541a1ad2981b3 to your computer and use it in GitHub Desktop.
Code Snippet for Receiving Rules Error
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;
}
}
@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