/**
 * Copyright (c) 2011-2016 Bosch Software Innovations GmbH, Germany. All rights reserved.
 */
package org.eclipse.hawkbit.rest.util;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * Copyright (c) 2015 Bosch Software Innovations GmbH and others.
 *
 * All rights reserved. This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
public class RequestResponseContextHolder {

    private HttpServletRequest httpServletRequest;

    private HttpServletResponse httpServletResponse;

    public HttpServletRequest getHttpServletRequest() {
        return httpServletRequest;
    }

    public HttpServletResponse getHttpServletResponse() {
        return httpServletResponse;
    }

    @Autowired
    public void setHttpServletRequest(final HttpServletRequest httpServletRequest) {
        this.httpServletRequest = httpServletRequest;
    }

    @Resource(name = HttpResponseFactoryBean.FACTORY_BEAN_NAME)
    public void setHttpServletResponse(final HttpServletResponse httpServletResponse) {
        this.httpServletResponse = httpServletResponse;
    }
}

@@ -21,14 +21,9 @@
  201
-1-2016
+5
  Bos
@@ -54,18 +54,26 @@
 GmbH
-, Germany.
+ and others.%0A *%0A *
  All
@@ -89,16 +89,238 @@
 eserved.
+ This program and the accompanying materials are made%0A * available under the terms of the Eclipse Public License v1.0 which%0A * accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html
 %0A */%0Apac
@@ -559,319 +559,62 @@
 %0A * 
-Copyright (c) 2015 Bosch Software Innovations GmbH and others.%0A *%0A * All rights reserved. This program and the accompanying materials are made%0A * available under the terms of the Eclipse Public License v1.0 which%0A * accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html
+Store the request and response for the rest resources.
 %0A */

Fix header