Mapper.SubMapper

public class SubMapper

Submapper class for the mapper object.

Fields

handler

Object handler

mapper

Mapper mapper

Constructors

SubMapper

public SubMapper(Mapper mapper, Object handler)
Parameters:
  • handler – Object of the handler class for all the URL action methods connecting to this submapper.

Methods

connect

public void connect(String url, String[] methods, String action, Permissions permissions)

Connect a URL to the framework’s url router, using handler that this submapper is initialized with.

Parameters:
  • url – The url path.
  • methods – Array of method names that apply on this url
  • action – The name of a public method defined in the handler class that processes the functionality for this url.
  • permissions – Permissions object for this URL

connect

public void connect(String url, String[] methods, String action)

Connect a URL to the framework’s url router, using handler that this submapper is initialized with.

Parameters:
  • url – The url path.
  • methods – Array of method names that apply on this url
  • action – The name of a public method defined in the handler class that processes the functionality for this url.