Class RdfPubClientDefault
java.lang.Object
org.linkedopenactors.rdfpub.client2024.RdfPubClientDefault
- All Implemented Interfaces:
RdfPubClient
-
Constructor Summary
ConstructorDescriptionRdfPubClientDefault
(HttpAdapter httpAdapter, ActivityPubObjectFactory activityPubObjectFactory, String serverBaseUrlParam) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.rdf.api.IRI
create
(Actor actor, ActivityPubObject ao) Sends the passedActivityPubObject
to the actors outbox.Creates a new, empty ActivityPubObject, that can be updated and send to the outbox.discoverActor
(String oauth2Name) readActivity
(String subject) readCollection
(String subject) readCollection
(String subject, int pageSize, int startIndex) readObject
(String subject) Reads the object with the passed Domain only on this instance.resolveObject
(String subject) Reads the object with the passed Domain, independent, if it is on this instance or on any other instance!org.apache.commons.rdf.api.IRI
Creates anIRI
from the passed String.
-
Constructor Details
-
RdfPubClientDefault
public RdfPubClientDefault(HttpAdapter httpAdapter, ActivityPubObjectFactory activityPubObjectFactory, @Value("${rdf-pub-server.url}") String serverBaseUrlParam)
-
-
Method Details
-
readActor
- Specified by:
readActor
in interfaceRdfPubClient
-
readActivity
- Specified by:
readActivity
in interfaceRdfPubClient
-
readObject
Description copied from interface:RdfPubClient
Reads the object with the passed Domain only on this instance.- Specified by:
readObject
in interfaceRdfPubClient
- Parameters:
subject
-- Returns:
- Found Object.
-
resolveObject
Description copied from interface:RdfPubClient
Reads the object with the passed Domain, independent, if it is on this instance or on any other instance!- Specified by:
resolveObject
in interfaceRdfPubClient
- Parameters:
subject
-- Returns:
- Found Object.
-
create
- Specified by:
create
in interfaceRdfPubClient
-
update
- Specified by:
update
in interfaceRdfPubClient
-
discoverActor
- Specified by:
discoverActor
in interfaceRdfPubClient
-
readCollection
- Specified by:
readCollection
in interfaceRdfPubClient
-
readCollection
- Specified by:
readCollection
in interfaceRdfPubClient
-
toIri
Description copied from interface:RdfPubClient
Creates anIRI
from the passed String.- Specified by:
toIri
in interfaceRdfPubClient
- Parameters:
item
-- Returns:
IRI
created from the passed String.
-
createNewEmpty
Description copied from interface:RdfPubClient
Creates a new, empty ActivityPubObject, that can be updated and send to the outbox.- Specified by:
createNewEmpty
in interfaceRdfPubClient
- Returns:
- a new, empty ActivityPubObject, that can be updated and send to the outbox.
-
create
Description copied from interface:RdfPubClient
Sends the passedActivityPubObject
to the actors outbox.- Specified by:
create
in interfaceRdfPubClient
- Parameters:
actor
- The actor who creates the new objectao
- The Object to create.- Returns:
- The location of the newly created CREATE activity.
-