use of org.apache.headers.coloc.types.InoutHeaderResponseT in project cxf by apache.
the class AbstractHeaderServiceDocLitTest method verifyInOutHeaderParts.
protected void verifyInOutHeaderParts(HeaderTester ht) {
getLogger().debug("Client: calling inoutHeader");
InoutHeaderT inoutHeader = new InoutHeaderT();
inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
HeaderInfo headerInfo = new HeaderInfo();
headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
holder.value = headerInfo;
InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeaderResponse.getResponseType());
assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeader.getRequestType());
assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
}
use of org.apache.headers.coloc.types.InoutHeaderResponseT in project cxf by apache.
the class BaseHeaderTesterRpcLitImpl method inoutHeader.
public InoutHeaderResponseT inoutHeader(InoutHeaderT in, Holder<HeaderInfo> header) {
getLogger().debug("Server: inoutHeader called");
assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN, in.getRequestType());
assertEquals(HeaderTesterUtil.INOUT_MESSAGE_IN, header.value.getMessage());
assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_IN, header.value.getOriginator());
HeaderInfo out = new HeaderInfo();
out.setMessage(HeaderTesterUtil.INOUT_MESSAGE_OUT);
out.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_OUT);
header.value = out;
InoutHeaderResponseT inoutHeaderResponse = new InoutHeaderResponseT();
inoutHeaderResponse.setResponseType(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT);
return inoutHeaderResponse;
}
use of org.apache.headers.coloc.types.InoutHeaderResponseT in project cxf by apache.
the class AbstractHeaderServiceRpcLitTest method verifyInOutHeaderParts.
protected void verifyInOutHeaderParts(HeaderTester ht) {
getLogger().debug("Client: calling inoutHeader");
InoutHeaderT inoutHeader = new InoutHeaderT();
inoutHeader.setRequestType(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN);
HeaderInfo headerInfo = new HeaderInfo();
headerInfo.setMessage(HeaderTesterUtil.INOUT_MESSAGE_IN);
headerInfo.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_IN);
Holder<HeaderInfo> holder = new Holder<HeaderInfo>();
holder.value = headerInfo;
InoutHeaderResponseT inoutHeaderResponse = ht.inoutHeader(inoutHeader, holder);
assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeaderResponse.getResponseType());
assertNotSame(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT, inoutHeader.getRequestType());
assertEquals(HeaderTesterUtil.INOUT_MESSAGE_OUT, holder.value.getMessage());
assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_OUT, holder.value.getOriginator());
}
use of org.apache.headers.coloc.types.InoutHeaderResponseT in project cxf by apache.
the class BaseHeaderTesterDocLitImpl method inoutHeader.
public InoutHeaderResponseT inoutHeader(InoutHeaderT me, Holder<HeaderInfo> headerInfo) {
getLogger().debug("Server: inoutHeader called");
assertEquals(HeaderTesterUtil.INOUT_REQUEST_TYPE_IN, me.getRequestType());
assertEquals(HeaderTesterUtil.INOUT_MESSAGE_IN, headerInfo.value.getMessage());
assertEquals(HeaderTesterUtil.INOUT_ORIGINATOR_IN, headerInfo.value.getOriginator());
HeaderInfo out = new HeaderInfo();
out.setMessage(HeaderTesterUtil.INOUT_MESSAGE_OUT);
out.setOriginator(HeaderTesterUtil.INOUT_ORIGINATOR_OUT);
headerInfo.value = out;
InoutHeaderResponseT inoutHeaderResponse = new InoutHeaderResponseT();
inoutHeaderResponse.setResponseType(HeaderTesterUtil.INOUT_REQUEST_TYPE_OUT);
return inoutHeaderResponse;
}
Aggregations