Java Code Examples for org.apache.cxf.service.model.OperationInfo#isUnwrappedCapable()
The following examples show how to use
org.apache.cxf.service.model.OperationInfo#isUnwrappedCapable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimpleMethodDispatcher.java From cxf with Apache License 2.0 | 6 votes |
public void bind(OperationInfo o, Method... methods) { Method primary = methods[0]; for (Method m : methods) { methodToOp.put(m, o); Map<BindingInfo, BindingOperationInfo> biToBop = new ConcurrentHashMap<>(4, 0.75f, 2); infoMap.put(m, biToBop); } opToMethod.put(o, primary); if (o.isUnwrappedCapable()) { opToMethod.put(o.getUnwrappedOperation(), primary); } }
Example 2
Source File: JaxWsProxyFactoryBean.java From cxf with Apache License 2.0 | 5 votes |
private boolean needWrapperClassInterceptor(ServiceInfo serviceInfo) { if (serviceInfo == null) { return false; } for (OperationInfo opInfo : serviceInfo.getInterface().getOperations()) { if (opInfo.isUnwrappedCapable() && opInfo.getProperty(ReflectionServiceFactoryBean.WRAPPERGEN_NEEDED) != null) { return true; } } return false; }
Example 3
Source File: ServiceJavascriptBuilder.java From cxf with Apache License 2.0 | 5 votes |
@Override public void end(OperationInfo op) { // we only process the wrapped operation, not the unwrapped alternative. if (op.isUnwrapped()) { isInUnwrappedOperation = false; return; } isWrapped = op.isUnwrappedCapable(); StringBuilder parameterList = new StringBuilder(); inputParameterNames = new ArrayList<>(); if (isWrapped) { collectWrapperElementInfo(); } else { collectUnwrappedInputInfo(); } buildParameterList(parameterList); MessageInfo outputMessage = op.getOutput(); nonVoidOutput = outputMessage != null && outputMessage.getMessageParts().size() != 0; if (!op.isOneWay()) { buildSuccessFunction(outputMessage); buildErrorFunction(); // fault part some day. } buildOperationFunction(parameterList); createInputSerializer(); if (nonVoidOutput) { createResponseDeserializer(outputMessage); } }
Example 4
Source File: ReflectionServiceFactoryBean.java From cxf with Apache License 2.0 | 5 votes |
public boolean hasWrappedMethods(InterfaceInfo interfaceInfo) { for (OperationInfo opInfo : interfaceInfo.getOperations()) { if (opInfo.isUnwrappedCapable()) { return true; } } return false; }