Package org.eolang.maven.objectionary
Class OyRemote
- java.lang.Object
-
- org.eolang.maven.objectionary.OyRemote
-
- All Implemented Interfaces:
Objectionary
public final class OyRemote extends Object implements Objectionary
The simple HTTP Objectionary server.- Since:
- 0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOyRemote.UrlOyObjectionary URL template.
-
Constructor Summary
Constructors Constructor Description OyRemote(CommitHash hash)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(String name)Checks whether an Objectionary contains a provided object.org.cactoos.Inputget(String name)Resolve object.StringtoString()
-
-
-
Constructor Detail
-
OyRemote
public OyRemote(CommitHash hash) throws IOException
Constructor.- Parameters:
hash- Commit hash- Throws:
IOException- if fails.
-
-
Method Detail
-
get
public org.cactoos.Input get(String name) throws MalformedURLException
Description copied from interface:ObjectionaryResolve object.- Specified by:
getin interfaceObjectionary- Parameters:
name- Object name.- Returns:
- Object code.
- Throws:
MalformedURLException
-
contains
public boolean contains(String name) throws IOException
Description copied from interface:ObjectionaryChecks whether an Objectionary contains a provided object.- Specified by:
containsin interfaceObjectionary- Parameters:
name- Object name.- Returns:
- Boolean: "true" if found, "false" if not.
- Throws:
IOException- If fails to fetch.
-
-