public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
public String represent() { return "Welcome to the " + getApplication().getName() + " !"; }
@Override public Representation getRepresentation(Status status, Request request, Response response) { // Create the data model Map<String, String> dataModel = new ConcurrentHashMap<String, String>(); dataModel.put("applicationName", Application.getCurrent().getName()); dataModel.put("statusDescription", response.getStatus() .getDescription()); dataModel.put("statusReasonPhrase", response.getStatus() .getReasonPhrase()); // Load the FreeMarker template Representation mailFtl = new ClientResource( LocalReference.createClapReference(getClass().getPackage()) + "/MailStatus.ftl").get(); // Wraps the bean with a FreeMarker representation return new TemplateRepresentation(mailFtl, dataModel, MediaType.TEXT_HTML); }
@Override public Representation getRepresentation(Status status, Request request, Response response) { // Create the data model Map<String, String> dataModel = new TreeMap<String, String>(); dataModel.put("applicationName", Application.getCurrent().getName()); dataModel.put("statusReasonPhrase", response.getStatus() .getReasonPhrase()); dataModel.put("statusDescription", response.getStatus() .getDescription()); // Load the FreeMarker template Representation mailFtl = new ClientResource( LocalReference.createClapReference(getClass().getPackage()) + "/MailStatus.ftl").get(); // Wraps the bean with a FreeMarker representation return new TemplateRepresentation(mailFtl, dataModel, MediaType.TEXT_HTML); }
contract.setDescription(StringUtils.nullToEmpty(application .getDescription())); if (application.toString().equals(application.getName())) { LOGGER.log(Level.WARNING, "Please provide a name to your application by overriding its method getName. Used " contract.setName(application.getClass().getSimpleName()); } else { contract.setName(application.getName());
contract.setDescription(StringUtils.nullToEmpty(application .getDescription())); if (application.toString().equals(application.getName())) { LOGGER.log(Level.WARNING, "Please provide a name to your application by overriding its method getName. Used " contract.setName(application.getClass().getSimpleName()); } else { contract.setName(application.getName());
contract.setDescription(StringUtils.nullToEmpty(application .getDescription())); if (application.toString().equals(application.getName())) { LOGGER.log(Level.WARNING, "Please provide a name to your application by overriding its method getName. Used " contract.setName(application.getClass().getSimpleName()); } else { contract.setName(application.getName());
contract.setDescription(StringUtils.nullToEmpty(application .getDescription())); if (application.toString().equals(application.getName())) { LOGGER.log(Level.WARNING, "Please provide a name to your application by overriding its method getName. Used " contract.setName(application.getClass().getSimpleName()); } else { contract.setName(application.getName());
contract.setDescription(StringUtils.nullToEmpty(application .getDescription())); if (application.toString().equals(application.getName())) { LOGGER.log(Level.WARNING, "Please provide a name to your application by overriding its method getName. Used " contract.setName(application.getClass().getSimpleName()); } else { contract.setName(application.getName());