Search in sources :

Example 1 with InHeaderResponseT

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

the class AbstractHeaderServiceDocLitTest method verifyInHeaderParts.

protected void verifyInHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling inHeader");
    InHeaderT inHeader = new InHeaderT();
    inHeader.setRequestType(HeaderTesterUtil.IN_REQUEST_TYPE);
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.IN_MESSAGE);
    headerInfo.setOriginator(HeaderTesterUtil.IN_ORIGINATOR);
    InHeaderResponseT inHeaderResponse = ht.inHeader(inHeader, headerInfo);
    assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, inHeaderResponse.getResponseType());
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) InHeaderT(org.apache.headers.coloc.types.InHeaderT) InHeaderResponseT(org.apache.headers.coloc.types.InHeaderResponseT)

Example 2 with InHeaderResponseT

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

the class AbstractHeaderServiceRpcLitTest method verifyInHeaderParts.

protected void verifyInHeaderParts(HeaderTester ht) {
    getLogger().debug("Client: calling inHeader");
    InHeaderT inHeader = new InHeaderT();
    inHeader.setRequestType(HeaderTesterUtil.IN_REQUEST_TYPE);
    HeaderInfo headerInfo = new HeaderInfo();
    headerInfo.setMessage(HeaderTesterUtil.IN_MESSAGE);
    headerInfo.setOriginator(HeaderTesterUtil.IN_ORIGINATOR);
    InHeaderResponseT inHeaderResponse = ht.inHeader(inHeader, headerInfo);
    assertEquals(HeaderTesterUtil.OUT_RESPONSE_TYPE, inHeaderResponse.getResponseType());
}
Also used : HeaderInfo(org.apache.headers.coloc.types.HeaderInfo) InHeaderT(org.apache.headers.coloc.types.InHeaderT) InHeaderResponseT(org.apache.headers.coloc.types.InHeaderResponseT)

Example 3 with InHeaderResponseT

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

the class BaseHeaderTesterDocLitImpl method inHeader.

public InHeaderResponseT inHeader(InHeaderT me, HeaderInfo headerInfo) {
    getLogger().debug("Server: inHeader called");
    assertEquals(HeaderTesterUtil.IN_REQUEST_TYPE, me.getRequestType());
    assertEquals(HeaderTesterUtil.IN_MESSAGE, headerInfo.getMessage());
    assertEquals(HeaderTesterUtil.IN_ORIGINATOR, headerInfo.getOriginator());
    InHeaderResponseT inHeaderResponse = new InHeaderResponseT();
    inHeaderResponse.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
    return inHeaderResponse;
}
Also used : InHeaderResponseT(org.apache.headers.coloc.types.InHeaderResponseT)

Example 4 with InHeaderResponseT

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

the class BaseHeaderTesterRpcLitImpl method inHeader.

public InHeaderResponseT inHeader(InHeaderT in, HeaderInfo header) {
    getLogger().debug("Server: inHeader called");
    assertEquals(HeaderTesterUtil.IN_REQUEST_TYPE, in.getRequestType());
    assertEquals(HeaderTesterUtil.IN_MESSAGE, header.getMessage());
    assertEquals(HeaderTesterUtil.IN_ORIGINATOR, header.getOriginator());
    InHeaderResponseT inHeaderResponse = new InHeaderResponseT();
    inHeaderResponse.setResponseType(HeaderTesterUtil.OUT_RESPONSE_TYPE);
    return inHeaderResponse;
}
Also used : InHeaderResponseT(org.apache.headers.coloc.types.InHeaderResponseT)

Aggregations

InHeaderResponseT (org.apache.headers.coloc.types.InHeaderResponseT)4 HeaderInfo (org.apache.headers.coloc.types.HeaderInfo)2 InHeaderT (org.apache.headers.coloc.types.InHeaderT)2