/** * Configuring xstream with our aliases. */ @Override public XStream doConfigureXstream( XStream xstream ) { return org.sonatype.nexus.rest.model.XStreamConfigurator.configureXStream( xstream ); }
@Override public XStream doConfigureXstream(XStream xstream) { return org.sonatype.nexus.rest.model.XStreamConfigurator.configureXStream(xstream); }
private static void initXStream(XStream xstream) { XStreamConfigurator.configureXStream(xstream); MIndexerXStreamConfiguratorLightweight.configureXStream(xstream); // Nexus replaces the String converter with one that escape HTML, we do NOT want that on the IT client. xstream.registerConverter(new StringConverter()); } }
private static void initXStream( XStream xstream ) { XStreamConfigurator.configureXStream( xstream ); MIndexerXStreamConfigurator.configureXStream( xstream ); // Nexus replaces the String converter with one that escape HTML, we do NOT want that on the IT client. xstream.registerConverter( new StringConverter() ); } }
public RestClientHelper( String baseUrl, String username, String password ) { ChallengeScheme scheme = ChallengeScheme.HTTP_BASIC; ChallengeResponse authentication = new ChallengeResponse( scheme, username, password ); this.challenge = authentication; this.baseUrl = baseUrl; this.restContext = new Context(); this.restClient = new Client( restContext, Protocol.HTTP ); xstream = XStreamConfigurator.configureXStream( new XStream( new LookAheadXppDriver() ) ); MIndexerXStreamConfigurator.configureXStream( xstream ); }