public interface ToadletContainer
Modifier and Type | Method and Description |
---|---|
HTMLNode |
addFormChild(HTMLNode parentNode,
java.lang.String target,
java.lang.String name) |
boolean |
allowPosts()
Can we deal with POSTs yet?
|
boolean |
disableProgressPage() |
boolean |
doRobots()
Whether to tell spiders to go away
|
boolean |
enableActivelinks() |
boolean |
enableCachingForChkAndSskKeys() |
boolean |
enableExtendedMethodHandling() |
boolean |
enableInlinePrefetch() |
boolean |
enablePersistentConnections() |
Toadlet |
findToadlet(java.net.URI uri)
Find a Toadlet by URI.
|
boolean |
fproxyHasCompletedWizard() |
long |
generateUniqueID()
Create a unique ID for a ToadletContext
|
BucketFactory |
getBucketFactory()
Get the BucketFactory
|
java.lang.String |
getFormPassword()
Get the form password
|
java.io.File |
getOverrideFile() |
PageMaker |
getPageMaker() |
FProxyFetchInProgress.REFILTER_POLICY |
getReFilterPolicy()
What to do when we find cached data on the global queue but it's already been
filtered, and we want a filtered copy.
|
PageMaker.THEME |
getTheme()
Get the name of the theme to be used by all the Toadlets
|
java.lang.String |
getURL() |
java.lang.String |
getURL(java.lang.String host) |
boolean |
isAdvancedModeEnabled() |
boolean |
isAllowedFullAccess(java.net.InetAddress remoteAddr)
Is the given IP address allowed full access to the node?
|
boolean |
isFProxyJavascriptEnabled() |
boolean |
isFProxyWebPushingEnabled() |
boolean |
isSSL() |
boolean |
publicGatewayMode()
Was public-gateway mode enabled on startup? (Changing it won't take
effect until restart because of bookmark-related issues).
|
void |
register(Toadlet t,
java.lang.String menu,
java.lang.String urlPrefix,
boolean atFront,
boolean fullAccessOnly)
Register a Toadlet.
|
void |
register(Toadlet t,
java.lang.String menu,
java.lang.String urlPrefix,
boolean atFront,
java.lang.String name,
java.lang.String title,
boolean fullOnly,
LinkEnabledCallback cb)
Registers a Toadlet and optionally adds a navigation link to the menu.
|
void |
register(Toadlet t,
java.lang.String menu,
java.lang.String urlPrefix,
boolean atFront,
java.lang.String name,
java.lang.String title,
boolean fullOnly,
LinkEnabledCallback cb,
FredPluginL10n l10n)
Registers a Toadlet and optionally adds a navigation link to the menu.
|
boolean |
sendAllThemes() |
void |
setAdvancedMode(boolean enabled) |
void |
unregister(Toadlet t) |
void register(Toadlet t, java.lang.String menu, java.lang.String urlPrefix, boolean atFront, boolean fullAccessOnly)
t
- the toadlet to registermenu
- the menu category to register a navigation link with with. It is
most likely also a l10n key, though that is irrelevant to this method.urlPrefix
- the prefix that the Toadlet will serve; should be a path like
/foo/bar/baz, most likely the string returned by the toadlet's path() methodatFront
- If true, this Toadlet will take precedence over any other
previously-registered Toadlet whose urlPrefix also matches. Otherwise,
the other matching Toadlet is used instead.fullOnly
- Whether or not the navigation link is shown when the http client
does not have full security access. Note that passing false does not prevent
the Toadlet from receiving requests under urlPrefix, so Toadlet authors
are advised to check for full access themselves, possibly returning a
403 error code.void register(Toadlet t, java.lang.String menu, java.lang.String urlPrefix, boolean atFront, java.lang.String name, java.lang.String title, boolean fullOnly, LinkEnabledCallback cb)
t
- the toadlet to registermenu
- the menu category to register a navigation link with with. It is
most likely also a l10n key, though that is irrelevant to this method.urlPrefix
- the prefix that the Toadlet will serve; should be a path like
/foo/bar/baz, most likely the string returned by the toadlet's path() methodatFront
- If true, this Toadlet will take precedence over any other
previously-registered Toadlet whose urlPrefix also matches. Otherwise,
the other matching Toadlet is used instead.name
- A l10n key used for the navigation link label.title
- A l10n key used for the navigation link tooltip.fullOnly
- Whether or not the navigation link is shown when the http client
does not have full security access. Note that passing false does not prevent
the Toadlet from receiving requests under urlPrefix, so Toadlet authors
are advised to check for full access themselves, possibly returning a
403 error code.cb
- A LinkEnabledCalback, allowing fine control of when the navigation
link is visible and when it isn't. Passing null means it is always visible.void register(Toadlet t, java.lang.String menu, java.lang.String urlPrefix, boolean atFront, java.lang.String name, java.lang.String title, boolean fullOnly, LinkEnabledCallback cb, FredPluginL10n l10n)
t
- the toadlet to registermenu
- the menu category to register a navigation link with with. It is
most likely also a l10n key, though that is irrelevant to this method.urlPrefix
- the prefix that the Toadlet will serve; should be a path like
/foo/bar/baz, most likely the string returned by the toadlet's path() methodatFront
- If true, this Toadlet will take precedence over any other
previously-registered Toadlet whose urlPrefix also matches. Otherwise,
the other matching Toadlet is used instead.name
- A l10n key used for the navigation link label.title
- A l10n key used for the navigation link tooltip.fullOnly
- Whether or not the navigation link is shown when the http client
does not have full security access. Note that passing false does not prevent
the Toadlet from receiving requests under urlPrefix, so Toadlet authors
are advised to check for full access themselves, possibly returning a
403 error code.cb
- A LinkEnabledCalback, allowing fine control of when the navigation
link is visible and when it isn't. Passing null means it is always visible.l10n
- A FredPluginL10n instance for translating the name and title parameters.
May be null.void unregister(Toadlet t)
Toadlet findToadlet(java.net.URI uri) throws PermanentRedirectException
java.net.URISyntaxException
RedirectException
PermanentRedirectException
PageMaker.THEME getTheme()
java.lang.String getFormPassword()
boolean isAllowedFullAccess(java.net.InetAddress remoteAddr)
boolean doRobots()
HTMLNode addFormChild(HTMLNode parentNode, java.lang.String target, java.lang.String name)
boolean enablePersistentConnections()
boolean enableInlinePrefetch()
boolean enableExtendedMethodHandling()
boolean enableCachingForChkAndSskKeys()
BucketFactory getBucketFactory()
boolean allowPosts()
boolean publicGatewayMode()
boolean enableActivelinks()
boolean sendAllThemes()
boolean isFProxyJavascriptEnabled()
boolean isFProxyWebPushingEnabled()
boolean disableProgressPage()
PageMaker getPageMaker()
boolean isAdvancedModeEnabled()
void setAdvancedMode(boolean enabled)
boolean fproxyHasCompletedWizard()
FProxyFetchInProgress.REFILTER_POLICY getReFilterPolicy()
java.io.File getOverrideFile()
java.lang.String getURL()
java.lang.String getURL(java.lang.String host)
boolean isSSL()
long generateUniqueID()