forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#77 from rpaquay/5280d51e8867042a22800f4f93d2…
…b0dd77b941ca Looks good
- Loading branch information
Showing
14 changed files
with
704 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...java/com/microsoft/windowsazure/services/blob/implementation/EntityStreamingListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.microsoft.windowsazure.services.blob.implementation; | ||
|
||
import com.sun.jersey.api.client.ClientRequest; | ||
|
||
public interface EntityStreamingListener { | ||
/** | ||
* This method is called just before the entity is streamed to the underlying connection. This is the last chance | ||
* for filters to inspect and modify the headers of the client request if necessary. | ||
* | ||
* @param clientRequest | ||
* The client request | ||
*/ | ||
void onBeforeStreamingEntity(ClientRequest clientRequest); | ||
} |
21 changes: 21 additions & 0 deletions
21
...java/com/microsoft/windowsazure/services/blob/implementation/HttpURLConnectionClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.microsoft.windowsazure.services.blob.implementation; | ||
|
||
import com.sun.jersey.api.client.Client; | ||
import com.sun.jersey.api.client.config.ClientConfig; | ||
|
||
public class HttpURLConnectionClient extends Client { | ||
private final HttpURLConnectionClientHandler rootHandler; | ||
|
||
public HttpURLConnectionClient(HttpURLConnectionClientHandler handler, ClientConfig config) { | ||
super(handler, config); | ||
this.rootHandler = handler; | ||
} | ||
|
||
public static HttpURLConnectionClient create(ClientConfig config) { | ||
return new HttpURLConnectionClient(new HttpURLConnectionClientHandler(), config); | ||
} | ||
|
||
public HttpURLConnectionClientHandler getRootHandler() { | ||
return rootHandler; | ||
} | ||
} |
Oops, something went wrong.