Class Parser

java.lang.Object
org.zkoss.web.servlet.dsp.impl.Parser

public class Parser extends Object
Used to parse a DSP page into a meta format called Interpretation.
Author:
tomyeh
  • Constructor Details

    • Parser

      public Parser()
  • Method Details

    • parse

      public Interpretation parse(String content, String ctype, org.zkoss.xel.XelContext xelc, org.zkoss.util.resource.Locator loc) throws DspException, IOException, org.zkoss.xel.XelException
      Parses the content into a meta format
      Parameters:
      content - the content to parse; never null.
      ctype - the content type. Optional. It is used only if no page action at all. If it is not specified and not page action, "text/html" is assumed.
      xelc - the context information used to parse XEL expressions in the content.
      loc - used to locate the resource such as taglib. It could null only if DSP contains no such resource.
      Throws:
      DspException
      IOException
      org.zkoss.xel.XelException