Package org.forgerock.json.resource
Class Applications
- java.lang.Object
-
- org.forgerock.json.resource.Applications
-
public final class Applications extends Object
A utility class for dealing withCrestApplication
instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CrestApplication
multipartCrestApplication(ConnectionFactory factory, String id, String version)
Create a simpleCrestApplication
that allows multipart/form-data requests using the provided factory, id and version.static CrestApplication
simpleCrestApplication(ConnectionFactory factory, String id, String version)
Create a simpleCrestApplication
using the provided factory, id and version.
-
-
-
Method Detail
-
simpleCrestApplication
public static CrestApplication simpleCrestApplication(ConnectionFactory factory, String id, String version)
Create a simpleCrestApplication
using the provided factory, id and version.- Parameters:
factory
- The factory.id
- The id.version
- The version.- Returns:
- The application.
-
multipartCrestApplication
public static CrestApplication multipartCrestApplication(ConnectionFactory factory, String id, String version)
Create a simpleCrestApplication
that allows multipart/form-data requests using the provided factory, id and version.SECURITY WARNING: You MUST ensure that adequate CSRF defenses are in place if enabling this option and using cookie-based authentication for web browser clients. Multipart requests are allowed cross-origin with no restrictions by web browsers and do not trigger same-origin or CORS protections.
- Parameters:
factory
- The factory.id
- The id.version
- The version.- Returns:
- The application.
-
-