com.atlassian.confluence.rest.resources
Class ResultSuppliers

java.lang.Object
  extended by com.atlassian.confluence.rest.resources.ResultSuppliers

public class ResultSuppliers
extends java.lang.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(java.lang.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(java.lang.String msg)
Parameters:
msg -
Throws:
a - NotFoundException with the given message when get() is called


Copyright © 2003-2014 Atlassian. All Rights Reserved.