public void setClient ( HTTPClientPolicy client ) { if ( this . clientSidePolicy != null ) { this . clientSidePolicy . removePropertyChangeListener ( this ) ; } this . clientSidePolicyCalced = true ; this . clientSidePolicy = client ; clientSidePolicy . removePropertyChangeListener ( this ) ; //make sure we aren't added twice clientSidePolicy . addPropertyChangeListener ( this ) ; endpointInfo . setProperty ( "org.apache.cxf.ws.addressing.replyto" , client . getDecoupledEndpoint ( ) ) ; }
This method sets the Client Side Policy for this HTTPConduit . Using this method will override any HTTPClientPolicy set in configuration .