Class ResultSuppliers
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.resources.ResultSuppliers
-
public class ResultSuppliers extends Object
Contains static methods to generate Suppliers with common rest results.Useful for passing into
Option.getOrElse(Supplier)
-
-
Constructor Summary
Constructors Constructor Description ResultSuppliers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Supplier
notFoundException(String msg)
-
-
-
Method Detail
-
notFoundException
public static com.google.common.base.Supplier notFoundException(String msg)
- Parameters:
msg
-- Throws:
com.sun.jersey.api.NotFoundException
- with the given message when get() is called
-
-