Code example for BasicHttpContext

Methods: setAttribute

0
		return Executors.newFixedThreadPool( 10 );
	} 
 
	@Provides 
	HttpContext getHttpContext( CookieStore cookieStore ) {
		HttpContext context = new BasicHttpContext();
		context.setAttribute( ClientContext.COOKIE_STORE, cookieStore );
		return context;
	} 
 
	@Provides 
	@Singleton 
	ResteasyProviderFactory getResteasyProviderFactory( SimpleXml<?> xml ) {
		ResteasyProviderFactory instance = new VimondResteasyProviderFactory();
		instance.registerProviderInstance( xml );
		instance.registerProvider( StringTextStar.class );
		instance.registerProvider( ProgramSortByConverter.class );
		RuntimeDelegate.setInstance( instance );
		return instance;
	}