@@ -0,0 +1,2135 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.trellisldp.http.impl;%0A%0Aimport static java.time.Instant.now;%0Aimport static java.util.Optional.ofNullable;%0Aimport static java.util.UUID.randomUUID;%0Aimport static org.trellisldp.spi.RDFUtils.getInstance;%0A%0Aimport java.time.Instant;%0Aimport java.util.Optional;%0A%0Aimport org.apache.commons.rdf.api.IRI;%0A%0Aimport org.trellisldp.spi.Session;%0Aimport org.trellisldp.vocabulary.Trellis;%0A%0A/**%0A * @author acoburn%0A */%0Apublic class HttpSession implements Session %7B%0A%0A    private final IRI identifier = getInstance().createIRI(%22trellis:session/%22 + randomUUID());%0A    private final IRI agent;%0A    private final IRI delegatedBy;%0A    private final Instant created;%0A%0A    /**%0A     * Create an HTTP-based session%0A     * @param agent the agent%0A     * @param delegatedBy the delegatedBy value%0A     */%0A    public HttpSession(final IRI agent, final IRI delegatedBy) %7B%0A        this.agent = agent;%0A        this.delegatedBy = delegatedBy;%0A        this.created = now();%0A    %7D%0A%0A    /**%0A     * Create an HTTP-based session%0A     * @param agent the agent%0A     */%0A    public HttpSession(final IRI agent) %7B%0A        this(agent, null);%0A    %7D%0A%0A    /**%0A     * Create an HTTP-based session%0A     */%0A    public HttpSession() %7B%0A        this(Trellis.AnonymousUser);%0A    %7D%0A%0A    @Override%0A    public IRI getIdentifier() %7B%0A        return identifier;%0A    %7D%0A%0A    @Override%0A    public IRI getAgent() %7B%0A        return agent;%0A    %7D%0A%0A    @Override%0A    public Optional%3CIRI%3E getDelegatedBy() %7B%0A        return ofNullable(delegatedBy);%0A    %7D%0A%0A    @Override%0A    public Instant getCreated() %7B%0A        return created;%0A    %7D%0A%7D%0A

Move session class to impl package