org.zkoss.zk.au
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.

Since:
5.0.4
Author:
tomyeh

Method Summary
 java.util.List<AuRequest> decode(java.lang.Object request, Desktop desktop)
          Returns a list of AuRequest by decoding the request.
 java.lang.String getDesktopId(java.lang.Object request)
          Returns the desktop ID.
 java.lang.String getFirstCommand(java.lang.Object request)
          Returns the first command.
 boolean isIgnorable(java.lang.Object request, WebApp wapp)
          Returns if the request is ignorable when an error occurs.
 

Method Detail

getDesktopId

java.lang.String getDesktopId(java.lang.Object request)
Returns the desktop ID.

Parameters:
request - the request. For HTTP, it is HttpServletRequest.

getFirstCommand

java.lang.String getFirstCommand(java.lang.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

java.util.List<AuRequest> decode(java.lang.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(java.lang.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.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo