001/* 002 * Copyright 2011-2016 UnboundID Corp. 003 * 004 * This program is free software; you can redistribute it and/or modify 005 * it under the terms of the GNU General Public License (GPLv2 only) 006 * or the terms of the GNU Lesser General Public License (LGPLv2.1 only) 007 * as published by the Free Software Foundation. 008 * 009 * This program is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 012 * GNU General Public License for more details. 013 * 014 * You should have received a copy of the GNU General Public License 015 * along with this program; if not, see <http://www.gnu.org/licenses>. 016 */ 017 018package org.apache.wink.client; 019 020import javax.ws.rs.client.ClientRequestContext; 021import javax.ws.rs.core.MultivaluedMap; 022 023/** 024 * Wink compatibility layer class - see Wink docs. 025 */ 026public class ClientRequest 027{ 028 private ClientRequestContext clientRequestContext; 029 030 /** 031 * Wink compatibility layer class - see Wink docs. 032 * @param clientRequestContext Wink compatibility layer class - see Wink docs. 033 */ 034 ClientRequest(final ClientRequestContext clientRequestContext) 035 { 036 this.clientRequestContext = clientRequestContext; 037 } 038 039 /** 040 * Wink compatibility layer class - see Wink docs. 041 * @return Wink compatibility layer class - see Wink docs. 042 */ 043 public MultivaluedMap<String, Object> getHeaders() 044 { 045 return clientRequestContext.getHeaders(); 046 } 047 048 /** 049 * Wink compatibility layer class - see Wink docs. 050 * @return Wink compatibility layer class - see Wink docs. 051 */ 052 public ClientRequestContext getClientRequestContext() 053 { 054 return clientRequestContext; 055 } 056}