Class OyEmpty

  • All Implemented Interfaces:
    Objectionary

    public final class OyEmpty
    extends Object
    implements Objectionary
    Fake empty HTTP Objectionary server.
    Since:
    0.1
    • Constructor Detail

      • OyEmpty

        public OyEmpty()
    • Method Detail

      • get

        public org.cactoos.Input get​(String name)
                              throws IOException
        Description copied from interface: Objectionary
        Resolve object.
        Specified by:
        get in interface Objectionary
        Parameters:
        name - Object name.
        Returns:
        Object code.
        Throws:
        IOException - If fails to fetch.
      • contains

        public boolean contains​(String name)
                         throws IOException
        Description copied from interface: Objectionary
        Checks whether an Objectionary contains a provided object.
        Specified by:
        contains in interface Objectionary
        Parameters:
        name - Object name.
        Returns:
        Boolean: "true" if found, "false" if not.
        Throws:
        IOException - If fails to fetch.