|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.io.http.HttpFilterRegistry
public final class HttpFilterRegistry
Houses protocol filters associated with fully qualified domain names.
Sample code
// 2 methods to register an FQDN with a package name: HttpFilterRegistry.registerFilter("www.blackberry.com", "com.rim.samples.device.httpfilterdemo.filter"); HttpFilterRegistry.registerFilter("content.blackberry.com", "com.rim.samples.device.httpfilterdemo.precanned", true); // To retrieve a previously registered package : String protocol = HttpFilterRegistry.getFilter(fqdn); if (protocol != null) { ... }What Is - A ControlledAccessException is thrown when using the HttpFilterRegistry
Method Summary | ||
---|---|---|
|
static void |
deregisterFilter(String fqdn)
Deregisters a previously registered filter. |
|
static String |
getFilter(String fqdn)
Retrieves a previously registered package by fully qualified domain name. |
|
static boolean |
isLocalFilter(String fqdn)
Retrieves whether an associated filter is defined to have local access. |
|
static void |
registerFilter(String fqdn,
String protocolPackage)
Registers a new fully qualified domain name (FQDN) with a package name. |
|
static void |
registerFilter(String fqdn,
String protocolPackage,
boolean isLocal)
Registers a new fully qualified domain name (FQDN) with a package name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void registerFilter(String fqdn, String protocolPackage)
fqdn
- Fully qualified domain name (eg. www.blackberry.com).protocolPackage
- The java package where the Protocol.java class
will be found. (eg. com.yourcompany.somepackage); the package name must
have a Protocol java class inside of the package for instantiation.
NOTE: The package name MUST include at least one dot ('.').
ControlledAccessException
- if the calling application is not
allowed according to Application Control by the IT Administrator for the
device to register a filter. Note that by default all applications are
not allowed to register filters. This functionality must be turned on by
the IT administrator.public static void registerFilter(String fqdn, String protocolPackage, boolean isLocal)
fqdn
- Fully qualified domain name (eg. www.blackberry.com).protocolPackage
- The java package where the Protocol.java class
will be found. (eg. com.yourcompany.somepackage); the package name must
have a Protocol java class inside of the package for instantiation.
NOTE: The package name MUST include at least one dot ('.').isLocal
- Whether or not this filter will do network access in any way.
The browser can check this value and allow access to local filters when the
radio is off or the device is out of coverage.
ControlledAccessException
- if the calling application is not
allowed according to Application Control by the IT Administrator for the
device to register a filter. Note that by default all applications are
not allowed to register filters. This functionality must be turned on by
the IT administrator.public static void deregisterFilter(String fqdn)
fqdn
- Fully qualified domain name (eg. www.blackberry.com)
ControlledAccessException
- if the calling application is not
allowed according to Application Control by the IT Administrator for the
device to deregister a filter. Note that by default all applications are
not allowed to deregister filters. This functionality must be turned on
by the IT administrator.public static String getFilter(String fqdn)
fqdn
- Fully qualified domain name (eg. www.blackberry.com).
public static boolean isLocalFilter(String fqdn)
fqdn
- Fully qualified domain name (eg. www.blackberry.com).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.