Class TripleObjectRetriever

  • All Implemented Interfaces:
    org.metafacture.framework.LifeCycle, org.metafacture.framework.ObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>, org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>, org.metafacture.framework.Receiver, org.metafacture.framework.Sender<org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>

    @Description("Uses the object value of the triple as a URL and emits a new triple in which the object value is replaced with the contents of the resource identified by the URL.")
    @In(org.metafacture.framework.objects.Triple.class)
    @Out(org.metafacture.framework.objects.Triple.class)
    @FluxCommand("retrieve-triple-objects")
    public final class TripleObjectRetriever
    extends org.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>
    Uses the object value of the triple as a URL and emits a new triple in which the object value is replaced with the contents of the resource identified by the URL.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDefaultEncoding()
      Returns the default encoding used when no encoding is provided by the server.
      void process​(org.metafacture.framework.objects.Triple triple)  
      void setDefaultEncoding​(java.lang.String defaultEncoding)
      Sets the default encoding to use when no encoding is provided by the server.
      void setDefaultEncoding​(java.nio.charset.Charset defaultEncoding)
      Sets the default encoding to use when no encoding is provided by the server.
      • Methods inherited from class org.metafacture.framework.helpers.DefaultSender

        closeStream, getReceiver, isClosed, onCloseStream, onResetStream, onSetReceiver, resetStream, setReceiver
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.metafacture.framework.LifeCycle

        closeStream, resetStream
      • Methods inherited from interface org.metafacture.framework.Sender

        setReceiver
    • Constructor Detail

    • Method Detail

      • setDefaultEncoding

        public void setDefaultEncoding​(java.lang.String defaultEncoding)
        Sets the default encoding to use when no encoding is provided by the server. The default setting is UTF-8.
        Parameters:
        defaultEncoding - new default encoding
      • setDefaultEncoding

        public void setDefaultEncoding​(java.nio.charset.Charset defaultEncoding)
        Sets the default encoding to use when no encoding is provided by the server. The default setting is UTF-8.
        Parameters:
        defaultEncoding - new default encoding
      • getDefaultEncoding

        public java.lang.String getDefaultEncoding()
        Returns the default encoding used when no encoding is provided by the server. The default setting is UTF-8.
        Returns:
        current default setting
      • process

        public void process​(org.metafacture.framework.objects.Triple triple)
        Specified by:
        process in interface org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>
        Overrides:
        process in class org.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,​org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>