com.atlassian.confluence.plugins.restapi.resources
Class ResultSuppliers

java.lang.Object
  extended by 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 com.atlassian.fugue.Option.getOrElse(Supplier)


Constructor Summary
ResultSuppliers()
           
 
Method Summary
static com.google.common.base.Supplier notFoundException(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSuppliers

public ResultSuppliers()
Method Detail

notFoundException

public static com.google.common.base.Supplier notFoundException(String msg)
Parameters:
msg -
Throws:
a - NotFoundException with the given message when get() is called


Copyright © 2003–2015 Atlassian. All rights reserved.