snippet for get rest user service

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428292 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-03 11:29:22 +00:00
parent 9b53cd4e29
commit e1c0623d31
1 changed files with 3 additions and 2 deletions

View File

@ -149,14 +149,14 @@ public abstract class AbstractRestServicesTest
{
return getUserService( null );
}
// START SNIPPET: get-user-service
protected UserService getUserService( String authzHeader )
{
UserService service =
JAXRSClientFactory.create( "http://localhost:" + port + "/" + getRestServicesPath() + "/redbackServices/",
UserService.class, Collections.singletonList( new JacksonJaxbJsonProvider() ) );
// for debuging purpose
// time out for debuging purpose
WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000 );
if ( authzHeader != null )
@ -168,6 +168,7 @@ public abstract class AbstractRestServicesTest
return service;
}
// END SNIPPET: get-user-service
protected RoleManagementService getRoleManagementService( String authzHeader )
{