Package org.dspace.services.model

Examples of org.dspace.services.model.Request


    }

    private void endRequest(String requestId, Exception failure) {
        if (requestId != null) {
            Session session = null;
            Request req = requests.get(requestId);
            if (req != null) {
                session = req.getSession();
            }
           
            List<RequestInterceptor> interceptors = getInterceptors(true); // reverse
            for (RequestInterceptor requestInterceptor : interceptors) {
                if (requestInterceptor != null) {
View Full Code Here


     *
     * @return the new session object which is placed into the request
     * @throws IllegalStateException if not session can be created
     */
    public Session getCurrentSession() {
        Request req = requests.getCurrent();
        if (req != null) {
            return req.getSession();
        }

        return null;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see org.dspace.services.SessionService#getCurrentSessionId()
     */
    public String getCurrentSessionId() {
        Request req = requests.getCurrent();
        if (req != null) {
            Session session = req.getSession();
            if (session != null) {
                return session.getSessionId();
            }
        }

View Full Code Here

    /* (non-Javadoc)
     * @see org.dspace.services.RequestService#getCurrentRequestId()
     */
    public String getCurrentRequestId() {
        Request req = requests.getCurrent();
        if (req != null) {
            return req.getRequestId();
        }

        return null;
    }
View Full Code Here

TOP

Related Classes of org.dspace.services.model.Request

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.