net.anotheria.anosite.content.servlet.InternalPageBeanResponse Maven / Gradle / Ivy
The newest version!
package net.anotheria.anosite.content.servlet;
import net.anotheria.anosite.content.bean.PageBean;
import net.anotheria.anosite.shared.InternalResponseCode;
/**
* Internal response with a resulting page bean. Used for successful processing of a page.
* @author lrosenberg
*
*/
public class InternalPageBeanResponse extends InternalResponse {
/**
* The resulting pageBean.
*/
private PageBean pageBean;
/**
* Creates a new InternalPageBeanResponse with a pagebean and InternalResponseCode.CONTINUE.
* @param aPageBean TODO dummy comment for javadoc.
*/
public InternalPageBeanResponse(PageBean aPageBean){
this(InternalResponseCode.CONTINUE, aPageBean);
}
/**
* Creates a new InternalPageBeanResponse with the given response code and pageBean.
* @param code TODO dummy comment for javadoc.
* @param aPageBean TODO dummy comment for javadoc.
*/
public InternalPageBeanResponse(InternalResponseCode code, PageBean aPageBean){
super(code);
pageBean = aPageBean;
}
/**
* Returns the page bean.
* @return TODO dummy comment for javadoc.
*/
public PageBean getPageBean(){
return pageBean;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy