Package org.metafacture.triples
Class TripleObjectRetriever
- java.lang.Object
-
- org.metafacture.framework.helpers.DefaultSender<R>
-
- org.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>
-
- org.metafacture.triples.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.
-
-
Constructor Summary
Constructors Constructor Description TripleObjectRetriever()Creates an instance ofTripleObjectRetriever.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultEncoding()Returns the default encoding used when no encoding is provided by the server.voidprocess(org.metafacture.framework.objects.Triple triple)voidsetDefaultEncoding(java.lang.String defaultEncoding)Sets the default encoding to use when no encoding is provided by the server.voidsetDefaultEncoding(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
-
-
-
-
Constructor Detail
-
TripleObjectRetriever
public TripleObjectRetriever()
Creates an instance ofTripleObjectRetriever.
-
-
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:
processin interfaceorg.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>- Overrides:
processin classorg.metafacture.framework.helpers.DefaultObjectPipe<org.metafacture.framework.objects.Triple,org.metafacture.framework.ObjectReceiver<org.metafacture.framework.objects.Triple>>
-
-