All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.services.sessions.model.InternalRequestImpl Maven / Gradle / Ivy

There is a newer version: 8.0
Show newest version
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.services.sessions.model;

import org.dspace.services.model.Request;
import org.dspace.services.model.Session;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

public final class InternalRequestImpl extends AbstractRequestImpl implements Request {

    private Map attributes = new HashMap();

    private Session session = new SessionImpl();

    public InternalRequestImpl() {
    }

    public ServletRequest getServletRequest() {
        return null;
    }

    public HttpServletRequest getHttpServletRequest() {
        return null;
    }

    public Session getSession() {
        return session;
    }

    public ServletResponse getServletResponse() {
        return null;
    }

    public HttpServletResponse getHttpServletResponse() {
        return null;
    }

    public Object getAttribute(String name) {
        return attributes.get(name);
    }

    public void setAttribute(String name, Object o) {
        attributes.put(name, o);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy