forked from jetty/jetty.project
-
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.
Issue jetty#3165 - Configure the HttpClient via XmlHttpClientProvider
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
- Loading branch information
1 parent
2c0ef55
commit b72f6c5
Showing
2 changed files
with
41 additions
and
13 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
21 changes: 21 additions & 0 deletions
21
jetty-websocket/javax-websocket-server/src/test/resources/jetty-websocket-httpclient.xml
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 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<Configure class="org.eclipse.jetty.client.HttpClient"> | ||
<Arg> | ||
<New class="org.eclipse.jetty.util.ssl.SslContextFactory"/> | ||
</Arg> | ||
<Call name="getAuthenticationStore"> | ||
<Call name="addAuthentication"> | ||
<Arg> | ||
<New class="org.eclipse.jetty.client.util.BasicAuthentication"> | ||
<Arg> | ||
<New class="java.net.URI" arg="ws://localhost:8080/secured/socket"/> | ||
</Arg> | ||
<Arg>testRealm</Arg> | ||
<Arg>user</Arg> | ||
<Arg>password</Arg> | ||
</New> | ||
</Arg> | ||
</Call> | ||
</Call> | ||
</Configure> |