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:
parent
9b53cd4e29
commit
e1c0623d31
|
@ -149,14 +149,14 @@ public abstract class AbstractRestServicesTest
|
||||||
{
|
{
|
||||||
return getUserService( null );
|
return getUserService( null );
|
||||||
}
|
}
|
||||||
|
// START SNIPPET: get-user-service
|
||||||
protected UserService getUserService( String authzHeader )
|
protected UserService getUserService( String authzHeader )
|
||||||
{
|
{
|
||||||
UserService service =
|
UserService service =
|
||||||
JAXRSClientFactory.create( "http://localhost:" + port + "/" + getRestServicesPath() + "/redbackServices/",
|
JAXRSClientFactory.create( "http://localhost:" + port + "/" + getRestServicesPath() + "/redbackServices/",
|
||||||
UserService.class, Collections.singletonList( new JacksonJaxbJsonProvider() ) );
|
UserService.class, Collections.singletonList( new JacksonJaxbJsonProvider() ) );
|
||||||
|
|
||||||
// for debuging purpose
|
// time out for debuging purpose
|
||||||
WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000 );
|
WebClient.getConfig( service ).getHttpConduit().getClient().setReceiveTimeout( 100000 );
|
||||||
|
|
||||||
if ( authzHeader != null )
|
if ( authzHeader != null )
|
||||||
|
@ -168,6 +168,7 @@ public abstract class AbstractRestServicesTest
|
||||||
|
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
|
// END SNIPPET: get-user-service
|
||||||
|
|
||||||
protected RoleManagementService getRoleManagementService( String authzHeader )
|
protected RoleManagementService getRoleManagementService( String authzHeader )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue