Package org.fcrepo.kernel.impl.observer
Interface EventBuilder
-
- All Known Implementing Classes:
ResourceOperationEventBuilder
public interface EventBuilder
Stores details about an Event.- Author:
- pwinckles
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event
build()
Constructs a new Event object from the details in the builder.EventBuilder
merge(EventBuilder other)
Merges another EventBuilder into this EventBuilder.EventBuilder
withBaseUrl(String baseUrl)
Sets the baseUrl of the requestsEventBuilder
withResourceTypes(Set<String> resourceTypes)
Sets the resource's RDF Types on the eventEventBuilder
withUserAgent(String userAgent)
Sets the user's user-agent
-
-
-
Method Detail
-
merge
EventBuilder merge(EventBuilder other)
Merges another EventBuilder into this EventBuilder. This should be used to combine multiple events on the same resource.- Parameters:
other
- another EventBuilder- Returns:
- this builder
-
withResourceTypes
EventBuilder withResourceTypes(Set<String> resourceTypes)
Sets the resource's RDF Types on the event- Parameters:
resourceTypes
- RDF Types- Returns:
- this builder
-
withBaseUrl
EventBuilder withBaseUrl(String baseUrl)
Sets the baseUrl of the requests- Parameters:
baseUrl
- the base url- Returns:
- this builder
-
withUserAgent
EventBuilder withUserAgent(String userAgent)
Sets the user's user-agent- Parameters:
userAgent
- the user's user-agent- Returns:
- this builder
-
-