2017-10-25 2 views
0

春XMLでHTTPConduitを関連付けるん:クライアントAutoRedirect = "true" の接続= "キープアライブ" のConnectionTimeout = "300000" ReceiveTimeoutという= "900000" のProxyServer = "$ {proxyHost}" ProxyServerPort = "$ {proxyPortの}" 他/>どのように私はenvironment.properties</p> <p>HTTPで真のクライアントuserProxy =以下に設定する必要があります

ます。http:クライアントAutoRedirect = "true" を接続= "キープアライブ" のConnectionTimeout = "300000 "ReceiveTimeout =" 900000 "/>

どのようにxmlで可能ですか?

<http:tlsClientParameters secureSocketProtocol="${ssl.secure.socket.protocol:TLSv1.2}" disableCNCheck="${ssl.common.name.check.disable:false}"> 
     <sec:trustManagers> 
      <sec:keyStore type="JKS" password="changeit" resource="mytrusts.keystore" /> 
     </sec:trustManagers> 
     <sec:keyManagers keyPassword="changeit"> 
      <sec:keyStore type="JKS" password="changeit" resource="test.keystore" /> 
     </sec:keyManagers> 
    </http:tlsClientParameters> 

    <http:client AutoRedirect="true" Connection="Keep-Alive" ConnectionTimeout="300000" ReceiveTimeout="900000" ProxyServer="${proxyHost}" ProxyServerPort="${proxyPort}"/> 
</http:conduit> 
+0

その非常に緊急 –

答えて

0

複数のオプションがあります。導管要素内に正しい名前属性を指定することによって、導管をサービスに関連付けることができます。構造はQName .http-conduitです。例えば

<http:conduit name="{http://example.com/}HelloWorldServicePort.http-conduit"> 
    [...] 
</http:conduit> 

また、スターとのQNameを置き換えることにより、任意のサービスにバインドすることができます。

<http:conduit name="*.http-conduit"> 
    [...] 
</http:conduit> 

またはエンドポイントのアドレスを使用します。詳細については

<http:conduit name="https://www.example.com/myservice"> 
    [...] 
</http:conduit> 

を参照してください。http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport(includingSSLsupport)-Theconduitelement

関連する問題