diff --git a/src/fr/devinsy/xidyn/views/View.java b/src/fr/devinsy/xidyn/views/View.java new file mode 100644 index 0000000..61cc283 --- /dev/null +++ b/src/fr/devinsy/xidyn/views/View.java @@ -0,0 +1,55 @@ +package fr.devinsy.xidyn.views; + +import fr.devinsy.xidyn.presenters.Presenter; + +/** + * + */ +public class View +{ + /** + * + */ + public StringBuffer getHtml() throws Exception + { + StringBuffer result; + + result = null; + + // + return (result); + } + + /** + * + */ + public StringBuffer getHtmlBody() throws Exception + { + StringBuffer result; + + StringBuffer html = this.getHtml(); + + if (html == null) + { + result = new StringBuffer(); + } + else + { + String body = Presenter.extractBodyContent(html); + + if (body == null) + { + result = new StringBuffer(); + } + else + { + result = new StringBuffer(body); + } + } + + // + return (result); + } +} + +// //////////////////////////////////////////////////////////////////////// \ No newline at end of file