private TopicService mr_topicService = new TopicService();
private ResponseBuilder responseBuilder = new ResponseBuilder();
private RequiredChecker checker = new RequiredChecker();
+ static final String UNSUPPORTED_PUT_MSG = "Method /PUT not supported for /topics";
public TopicResource() {
DmaapConfig p = (DmaapConfig)DmaapConfig.getConfig();
ApiError apiError = new ApiError();
apiError.setCode(Status.BAD_REQUEST.getStatusCode());
- apiError.setMessage( "Method /PUT not supported for /topics");
+ apiError.setMessage(UNSUPPORTED_PUT_MSG);
return responseBuilder.error(apiError);
}