Interface AuDecoder


public interface AuDecoder
Used to decode the custom format of the AU requests. By default, the AU request is sent in the JSON format. If you prefer to use another format, you have to do as follows.
  • Implement this interface to decode the custom format.
  • Register the implementation by specifying it in WEB-INF/zk.xml
  • Override a JavaScript method called zAu.encode() to encode to the custom format
Since:
5.0.4
Author:
tomyeh
  • Method Details

    • getDesktopId

      String getDesktopId(Object request)
      Returns the desktop ID.
      Parameters:
      request - the request. For HTTP, it is HttpServletRequest.
    • getFirstCommand

      String getFirstCommand(Object request)
      Returns the first command. It is called if a desktop is not found.
      Parameters:
      request - the request. For HTTP, it is HttpServletRequest.
    • decode

      List<AuRequest> decode(Object request, Desktop desktop)
      Returns a list of AuRequest by decoding the request.
      Parameters:
      request - the request. For HTTP, it is HttpServletRequest.
    • isIgnorable

      boolean isIgnorable(Object request, WebApp wapp)
      Returns if the request is ignorable when an error occurs. If true is returned, the request is simply ignored. Otherwise, an error message, depending on the configuration, is sent to the client.