Package org.forgerock.json.resource
Class Applications
java.lang.Object
org.forgerock.json.resource.Applications
A utility class for dealing with 
CrestApplication instances.- 
Method Summary
Modifier and TypeMethodDescriptionstatic CrestApplicationmultipartCrestApplication(ConnectionFactory factory, String id, String version) Create a simpleCrestApplicationthat allows multipart/form-data requests using the provided factory, id and version.static CrestApplicationsimpleCrestApplication(ConnectionFactory factory, String id, String version) Create a simpleCrestApplicationusing the provided factory, id and version. 
- 
Method Details
- 
simpleCrestApplication
public static CrestApplication simpleCrestApplication(ConnectionFactory factory, String id, String version) Create a simpleCrestApplicationusing 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 simpleCrestApplicationthat 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.
 
 
 -