FuseGuard Logo

fuseguard.components.configurators
Component BaseURLBuilder

configurators.BaseURLBuilder

Contains the default URL builder implementation, extend this component to create a new URL structure for FuseGuard Manager (eg for SES urls or Framework Specific URLs).

Method Summary
public BaseURLBuilder init()
          Initializes and returns an instance of this object.
public string createDynamicURL([string action], [string queryString=""])
          Constructs a URL for use within FuseGuard Manager
public string createStaticURL([string path])
          Constructs a URL for FuseGuard Manager static assets (js, css, img, etc)
public any getDefaultContentSecurityPolicy()
          Returns the content security policy header value to return. If the result of createStaticURL is of another domain (eg a CDN) then this value must be updated. See content-security-policy.com for more info.
public boolean isCurrentAction([string action])
 

Method Detail

createDynamicURL

public string createDynamicURL([string action], [string queryString=""])
Constructs a URL for use within FuseGuard Manager

Parameters:
[string action] - The path name, eg user
[string queryString=""] - This value should be URL Encoded already

createStaticURL

public string createStaticURL([string path])
Constructs a URL for FuseGuard Manager static assets (js, css, img, etc)

Parameters:
[string path] - The full path to the static css/js file, eg: views/style/style.css

getDefaultContentSecurityPolicy

public any getDefaultContentSecurityPolicy()
Returns the content security policy header value to return. If the result of createStaticURL is of another domain (eg a CDN) then this value must be updated. See content-security-policy.com for more info.


init

public BaseURLBuilder init()
Initializes and returns an instance of this object.


isCurrentAction

public boolean isCurrentAction([string action])
Parameters:
[string action]