提交 402fcc7e 编写于 作者: A adriancole

remove jaxrs dependency by changing IResponse headers to a Map

上级 c2b88a77
...@@ -30,7 +30,6 @@ subprojects { ...@@ -30,7 +30,6 @@ subprojects {
compile 'com.google.guava:guava:11.0.2' compile 'com.google.guava:guava:11.0.2'
compile 'com.netflix.archaius:archaius-core:0.5.8' compile 'com.netflix.archaius:archaius-core:0.5.8'
compile 'com.netflix.netflix-commons:netflix-commons-util:0.1.1' compile 'com.netflix.netflix-commons:netflix-commons-util:0.1.1'
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'commons-collections:commons-collections:3.2.1' compile 'commons-collections:commons-collections:3.2.1'
testCompile 'junit:junit:4.10' testCompile 'junit:junit:4.10'
testCompile 'log4j:log4j:1.2.16' testCompile 'log4j:log4j:1.2.16'
...@@ -50,6 +49,7 @@ project(':ribbon-httpclient') { ...@@ -50,6 +49,7 @@ project(':ribbon-httpclient') {
compile project(':ribbon-core') compile project(':ribbon-core')
compile 'org.apache.httpcomponents:httpclient:4.1.2' compile 'org.apache.httpcomponents:httpclient:4.1.2'
compile 'com.sun.jersey:jersey-bundle:1.9.1' compile 'com.sun.jersey:jersey-bundle:1.9.1'
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'com.sun.jersey.contribs:jersey-apache-client4:1.8' compile 'com.sun.jersey.contribs:jersey-apache-client4:1.8'
testCompile 'asm:asm-all:3.2' testCompile 'asm:asm-all:3.2'
testCompile 'commons-io:commons-io:2.0.1' testCompile 'commons-io:commons-io:2.0.1'
......
...@@ -18,9 +18,7 @@ ...@@ -18,9 +18,7 @@
package com.netflix.client; package com.netflix.client;
import java.net.URI; import java.net.URI;
import java.util.Map;
import javax.ws.rs.core.MultivaluedMap;
/** /**
* Response interface for the client framework. * Response interface for the client framework.
...@@ -54,5 +52,5 @@ public interface IResponse ...@@ -54,5 +52,5 @@ public interface IResponse
* *
* @return Headers if any in the response. * @return Headers if any in the response.
*/ */
public MultivaluedMap<?, ?> getHeaders(); public Map<String, ?> getHeaders();
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册