Java tutorial
/* * Copyright(C) 2014 * NEC Corporation All rights reserved. * * No permission to use, copy, modify and distribute this software * and its documentation for any purpose is granted. * This software is provided under applicable license agreement only. */ package com.nec.harvest.provider; import org.apache.commons.lang.StringUtils; import com.nec.harvest.controller.BaseController; /** * @author sondn * */ public class PageTitleProvider extends PageProvider { /** * Get the title of page for every HTTP Request * * @return */ public String getTitle() { final String title = (String) getRequest().getAttribute(BaseController.TITLE); if (StringUtils.isNotEmpty(title)) { return title; } return StringUtils.EMPTY; } }