public class SimpleAgentService extends Object implements AgentService
AgentService implementation that converts user strings
directly to IRIs.
A value of null passed to asAgent(java.lang.String) will result
in a trellis:AnonymousAgent value.
| Constructor and Description |
|---|
SimpleAgentService() |
public IRI asAgent(String user)
AgentServiceString into an IRI.
Implementations of this interface should gracefully handle null and
empty values, possibly mapping them to an agent such as trellis:AnonymousAgent.
asAgent in interface AgentServiceuser - the agent as a string