Adding documentation for snippets

This commit is contained in:
Martin Stockhammer 2017-03-21 20:53:10 +01:00
parent ba47a48c27
commit c773e3835c
1 changed files with 2 additions and 0 deletions

View File

@ -268,6 +268,7 @@ public abstract class AbstractArchivaRestTest
{ {
WebClient.client( service ).header( "Authorization", authzHeader ); WebClient.client( service ).header( "Authorization", authzHeader );
} }
// Set the Referer header to your archiva server url
WebClient.client(service).header("Referer","http://localhost:"+port); WebClient.client(service).header("Referer","http://localhost:"+port);
WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000000 ); WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000000 );
@ -298,6 +299,7 @@ public abstract class AbstractArchivaRestTest
{ {
WebClient.client( service ).header( "Authorization", authzHeader ); WebClient.client( service ).header( "Authorization", authzHeader );
} }
// Set the Referer header to your archiva server url
WebClient.client(service).header("Referer","http://localhost:"+port); WebClient.client(service).header("Referer","http://localhost:"+port);
// to configure read timeout // to configure read timeout
WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000000 ); WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000000 );