當前位置: 首頁>>代碼示例>>Java>>正文


Java Phase.PRE_INVOKE屬性代碼示例

本文整理匯總了Java中org.apache.cxf.phase.Phase.PRE_INVOKE屬性的典型用法代碼示例。如果您正苦於以下問題:Java Phase.PRE_INVOKE屬性的具體用法?Java Phase.PRE_INVOKE怎麽用?Java Phase.PRE_INVOKE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.apache.cxf.phase.Phase的用法示例。


在下文中一共展示了Phase.PRE_INVOKE屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: ValidationInterceptor

public ValidationInterceptor() {
    super(Phase.PRE_INVOKE);
    ValidatorFactory defaultFactory = Validation.buildDefaultValidatorFactory();
    validator = defaultFactory.getValidator();
    if (validator == null) {
        log.warn("Bean Validation provider could not be found, no validation will be performed");
    } else {
        log.debug("Validation In-Interceptor initialized successfully");
    }
}
 
開發者ID:wso2,項目名稱:carbon-device-mgt,代碼行數:10,代碼來源:ValidationInterceptor.java

示例2: publishEndpointWithCxfInterceptors

@Test
public void publishEndpointWithCxfInterceptors() throws Exception {

    TestInterceptor inInterceptor = new TestInterceptor(Phase.UNMARSHAL);
    TestInterceptor inInterceptor2 = new TestInterceptor(Phase.PRE_INVOKE);
    TestInterceptor outInterceptor = new TestInterceptor(Phase.MARSHAL);

    jaxwsEnvironment.publishEndpoint(
            new EndpointBuilder("local://path", service)
                    .cxfInInterceptors(inInterceptor, inInterceptor2)
                    .cxfOutInterceptors(outInterceptor));

    verify(mockInvokerBuilder).create(any(), any(Invoker.class));

    Node soapResponse = testutils.invoke("local://path",
            LocalTransportFactory.TRANSPORT_ID, soapRequest.getBytes());

    verify(mockInvoker).invoke(any(Exchange.class), any());
    assertThat(inInterceptor.getInvocationCount(), equalTo(1));
    assertThat(inInterceptor2.getInvocationCount(), equalTo(1));
    assertThat(outInterceptor.getInvocationCount(), equalTo(1));

    testutils.assertValid("/soap:Envelope/soap:Body/a:fooResponse", soapResponse);

    soapResponse = testutils.invoke("local://path",
            LocalTransportFactory.TRANSPORT_ID, soapRequest.getBytes());

    verify(mockInvoker, times(2)).invoke(any(Exchange.class), any());
    assertThat(inInterceptor.getInvocationCount(), equalTo(2));
    assertThat(inInterceptor2.getInvocationCount(), equalTo(2));
    assertThat(outInterceptor.getInvocationCount(), equalTo(2));

    testutils.assertValid("/soap:Envelope/soap:Body/a:fooResponse", soapResponse);
}
 
開發者ID:roskart,項目名稱:dropwizard-jaxws,代碼行數:34,代碼來源:JAXWSEnvironmentTest.java

示例3: CxfFunctionGuardInterceptor

/**
 * Create the interceptor and register it for the PRE_INVOKE phase
 */
public CxfFunctionGuardInterceptor() {
    super(Phase.PRE_INVOKE);
}
 
開發者ID:jaffa-projects,項目名稱:jaffa-framework,代碼行數:6,代碼來源:CxfFunctionGuardInterceptor.java

示例4: ClearThreadLocalInterceptor

public ClearThreadLocalInterceptor() {
    super(Phase.PRE_INVOKE);
}
 
開發者ID:wso2,項目名稱:carbon-identity-framework,代碼行數:3,代碼來源:ClearThreadLocalInterceptor.java

示例5: FromAddressInterceptor

public FromAddressInterceptor() {
    super(Phase.PRE_INVOKE);
}
 
開發者ID:RWTH-i5-IDSG,項目名稱:steve-plugsurfing,代碼行數:3,代碼來源:FromAddressInterceptor.java

示例6: AppAuthorize

public AppAuthorize()
{
    super(Phase.PRE_INVOKE);
}
 
開發者ID:Huawei,項目名稱:eSDK_EC_SDK_Java,代碼行數:4,代碼來源:AppAuthorize.java

示例7: PlatformInterceptor

public PlatformInterceptor()
{
    super(Phase.PRE_INVOKE);
}
 
開發者ID:Huawei,項目名稱:eSDK_EC_SDK_Java,代碼行數:4,代碼來源:PlatformInterceptor.java

示例8: getPhase

public String getPhase() {
    return Phase.PRE_INVOKE;
}
 
開發者ID:williamgrosset,項目名稱:OSCAR-ConCert,代碼行數:3,代碼來源:OAuthInterceptor.java

示例9: AuthenticationInInterceptor

public AuthenticationInInterceptor() {
	super(Phase.PRE_INVOKE);
}
 
開發者ID:williamgrosset,項目名稱:OSCAR-ConCert,代碼行數:3,代碼來源:AuthenticationInInterceptor.java

示例10: MsgInInterceptor

public MsgInInterceptor()
{
    super(Phase.PRE_INVOKE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:4,代碼來源:MsgInInterceptor.java

示例11: IVSInterceptor

public IVSInterceptor()
{
    super(Phase.PRE_INVOKE);
}
 
開發者ID:Huawei,項目名稱:eSDK_IVS_Java,代碼行數:4,代碼來源:IVSInterceptor.java

示例12: ValidationInterceptor

ValidationInterceptor(Validator validator) {
    super(Phase.PRE_INVOKE);
    this.validator = validator;
}
 
開發者ID:Microbule,項目名稱:microbule,代碼行數:4,代碼來源:ValidationInterceptor.java

示例13: PosInterceptor

public PosInterceptor() {
    super(Phase.PRE_INVOKE);
}
 
開發者ID:mateli,項目名稱:OpenCyclos,代碼行數:3,代碼來源:PosInterceptor.java

示例14: AuthInterceptor

public AuthInterceptor() {
    super(Phase.PRE_INVOKE);
}
 
開發者ID:mateli,項目名稱:OpenCyclos,代碼行數:3,代碼來源:AuthInterceptor.java

示例15: MonitoringInterceptor

public MonitoringInterceptor(EventTimer timer) {
	super(Phase.PRE_INVOKE);
	this.timer = timer;
}
 
開發者ID:performancecopilot,項目名稱:parfait,代碼行數:4,代碼來源:MonitoringInterceptor.java


注:本文中的org.apache.cxf.phase.Phase.PRE_INVOKE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。