Package com.afrunt.randomjoke.suppliers
Class AbstractJokeSupplier
- java.lang.Object
-
- com.afrunt.randomjoke.suppliers.AbstractJokeSupplier
-
- All Implemented Interfaces:
HttpOperationsSupport,Supplier<Joke>
- Direct Known Subclasses:
BashOrg,ChuckNorris,GeekJoke,GoodBadJokes,ICanHazDadJoke,SecondChuckNorris
public abstract class AbstractJokeSupplier extends Object implements Supplier<Joke>, HttpOperationsSupport
- Author:
- Andrii Frunt
-
-
Constructor Summary
Constructors Constructor Description AbstractJokeSupplier()
-
Method Summary
Modifier and Type Method Description org.htmlcleaner.HtmlCleanergetCleaner()abstract StringgetSource()protected StringremoveSurroundingQuotes(String text)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.afrunt.randomjoke.HttpOperationsSupport
inputStreamFromUrl, inputStreamFromUrl, inputStreamToJsonObject, inputStreamToString, jsonObjectFromUrl, jsonObjectFromUrl, openConnection, stringFromUrl, stringFromUrl, stringsFromUrl, tagNodeFromUrl, tagNodeFromUrl
-
-
-
-
Method Detail
-
getSource
public abstract String getSource()
-
getCleaner
public org.htmlcleaner.HtmlCleaner getCleaner()
- Specified by:
getCleanerin interfaceHttpOperationsSupport
-
-