Search in sources :

Example 1 with OutHeaderResponseT

use of org.apache.headers.coloc.types.OutHeaderResponseT in project cxf by apache.

the class BaseHeaderTesterRpcLitImpl method outHeader.

public void outHeader(OutHeaderT in, Holder<OutHeaderResponseT> out, Holder<HeaderInfo> header) {
    getLogger().debug("Server: outHeader called");
    assertEquals(HeaderTesterUtil.OUT_REQUEST_TYPE, in.getRequestType());
    HeaderInfo outHeader = new HeaderInfo();
    outHeader.setMessage(HeaderTesterUtil.OUT_MESSAGE_OUT);
    outHeader.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_OUT);
    header.value = outHeader;
    OutHeaderResponseT resp = new OutHeaderResponseT();
    resp.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
    out.value = resp;
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) OutHeaderResponseT(org.apache.headers.coloc.types.OutHeaderResponseT)

Example 2 with OutHeaderResponseT

use of org.apache.headers.coloc.types.OutHeaderResponseT in project cxf by apache.

the class AbstractHeaderServiceDocLitTest method verifyOutHeaderParts.

protected void verifyOutHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling outHeader");
    OutHeaderT outHeader = new OutHeaderT();
    outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
    OutHeaderResponseT theResponse = new OutHeaderResponseT();
    theResponse.setResponseType("bogus");
    Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
    respHolder.value = theResponse;
    Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
    headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
    holder.value = headerInfo;
    ht.outHeader(outHeader, respHolder, holder);
    assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
    assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
    assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
}
Also used : OutHeaderT(org.apache.headers.coloc.types.OutHeaderT) HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) OutHeaderResponseT(org.apache.headers.coloc.types.OutHeaderResponseT) Holder(javax.xml.ws.Holder)

Example 3 with OutHeaderResponseT

use of org.apache.headers.coloc.types.OutHeaderResponseT in project cxf by apache.

the class AbstractHeaderServiceRpcLitTest method verifyOutHeaderParts.

protected void verifyOutHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling outHeader");
    OutHeaderT outHeader = new OutHeaderT();
    outHeader.setRequestType(HeaderTesterUtil.OUT_REQUEST_TYPE);
    OutHeaderResponseT theResponse = new OutHeaderResponseT();
    theResponse.setResponseType("bogus");
    Holder<OutHeaderResponseT> respHolder = new Holder<OutHeaderResponseT>();
    respHolder.value = theResponse;
    Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.OUT_MESSAGE_IN);
    headerInfo.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_IN);
    holder.value = headerInfo;
    ht.outHeader(outHeader, respHolder, holder);
    assertEquals(HeaderTesterUtil.OUT_MESSAGE_OUT, holder.value.getMessage());
    assertEquals(HeaderTesterUtil.OUT_ORIGINATOR_OUT, holder.value.getOriginator());
    assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, respHolder.value.getResponseType());
}
Also used : OutHeaderT(org.apache.headers.coloc.types.OutHeaderT) HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) OutHeaderResponseT(org.apache.headers.coloc.types.OutHeaderResponseT) Holder(javax.xml.ws.Holder)

Example 4 with OutHeaderResponseT

use of org.apache.headers.coloc.types.OutHeaderResponseT in project cxf by apache.

the class BaseHeaderTesterDocLitImpl method outHeader.

public void outHeader(OutHeaderT me, Holder<OutHeaderResponseT> theResponse, Holder<HeaderInfo> headerInfo) {
    getLogger().debug("Server: outHeader called");
    assertEquals(HeaderTesterUtil.OUT_REQUEST_TYPE, me.getRequestType());
    HeaderInfo out = new HeaderInfo();
    out.setMessage(HeaderTesterUtil.OUT_MESSAGE_OUT);
    out.setOriginator(HeaderTesterUtil.OUT_ORIGINATOR_OUT);
    headerInfo.value = out;
    OutHeaderResponseT resp = new OutHeaderResponseT();
    resp.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
    theResponse.value = resp;
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) OutHeaderResponseT(org.apache.headers.coloc.types.OutHeaderResponseT)

Aggregations

HeaderInfo (org.apache.headers.coloc.types.HeaderInfo)4 OutHeaderResponseT (org.apache.headers.coloc.types.OutHeaderResponseT)4 Holder (javax.xml.ws.Holder)2 OutHeaderT (org.apache.headers.coloc.types.OutHeaderT)2