Codota Logo
OperationInfo.isUnwrapped
Code IndexAdd Codota to your IDE (free)

How to use
isUnwrapped
method
in
org.apache.cxf.service.model.OperationInfo

Best Java code snippets using org.apache.cxf.service.model.OperationInfo.isUnwrapped (Showing top 20 results out of 315)

  • Common ways to obtain OperationInfo
private void myMethod () {
OperationInfo o =
  • Codota IconBindingOperationInfo bop;bop.getOperationInfo()
  • Smart code suggestions by Codota
}
origin: apache/cxf

public boolean isUnwrapped() {
  return opInfo.isUnwrapped();
}
public BindingOperationInfo getWrappedOperation() {
origin: apache/cxf

@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);
  }
}
origin: org.apache.cxf/cxf-api

public boolean isUnwrapped() {
  return opInfo.isUnwrapped();
}
public BindingOperationInfo getWrappedOperation() {
origin: org.apache.cxf/cxf-bundle-jaxrs

public boolean isUnwrapped() {
  return opInfo.isUnwrapped();
}
public BindingOperationInfo getWrappedOperation() {
origin: org.apache.cxf/cxf-core

public boolean isUnwrapped() {
  return opInfo.isUnwrapped();
}
public BindingOperationInfo getWrappedOperation() {
origin: apache/cxf

@Override
public void begin(OperationInfo op) {
  if (op.isUnwrapped()) {
    isInUnwrappedOperation = true;
    return;
  }
  currentOperation = op;
  OperationInfo conflict = localOperationsNameMap.get(op.getName().getLocalPart());
  if (conflict != null) {
    operationsWithNameConflicts.add(conflict);
    operationsWithNameConflicts.add(op);
  }
  localOperationsNameMap.put(op.getName().getLocalPart(), op);
  opFunctionPropertyName = getFunctionPropertyName(operationsWithNameConflicts, op, op.getName());
  opFunctionGlobalName = getFunctionGlobalName(op.getName(), "op");
}
origin: apache/cxf

  private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) {
    if (op.isUnwrapped() && (op instanceof UnwrappedOperationInfo)) {
      op = ((UnwrappedOperationInfo)op).getWrappedOperation();
    }

    for (FaultInfo faultInfo : op.getFaults()) {
      for (MessagePartInfo mpi : faultInfo.getMessageParts()) {
        String ns = null;
        if (mpi.isElement()) {
          ns = mpi.getElementQName().getNamespaceURI();
        } else {
          ns = mpi.getTypeQName().getNamespaceURI();
        }
        if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart())
            && qname.getNamespaceURI().equals(ns)) {
          return mpi;
        }
      }

    }
    return null;
  }
}
origin: org.apache.cxf/cxf-rt-bindings-coloc

  private MessagePartInfo getFaultMessagePart(QName qname, OperationInfo op) {
    if (op.isUnwrapped() && (op instanceof UnwrappedOperationInfo)) {
      op = ((UnwrappedOperationInfo)op).getWrappedOperation();
    }

    for (FaultInfo faultInfo : op.getFaults()) {
      for (MessagePartInfo mpi : faultInfo.getMessageParts()) {
        String ns = null;
        if (mpi.isElement()) {
          ns = mpi.getElementQName().getNamespaceURI();
        } else {
          ns = mpi.getTypeQName().getNamespaceURI();
        }
        if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart())
            && qname.getNamespaceURI().equals(ns)) {
          return mpi;
        }
      }

    }
    return null;
  }
}
origin: org.apache.cxf/cxf-rt-databinding-jibx

public void checkForExistence(MessagePartInfo part) {
  QName qn = part.getElementQName();
  if (qn != null) {
    XmlSchemaElement el = schemas.getElementByQName(qn);
    if (el == null) {
      Class<?> clazz = part.getTypeClass();
      if (clazz == null) {
        return;
      }
      boolean isFromWrapper = part.getMessageInfo().getOperation().isUnwrapped();
      if (isFromWrapper && clazz.isArray() && !Byte.TYPE.equals(clazz.getComponentType())) {
        clazz = clazz.getComponentType();
      }
      mapClass(part, clazz);
    }
  }
}
origin: org.apache.cxf/cxf-rt-databinding-xmlbeans

public void checkForExistence(MessagePartInfo part) {
  QName qn = part.getElementQName();
  if (qn != null) {
    XmlSchemaElement el = schemas.getElementByQName(qn);
    if (el == null) {
      Class<?> clazz = part.getTypeClass();
      if (clazz == null) {
        return;
      }
      boolean isFromWrapper = part.getMessageInfo().getOperation().isUnwrapped();
      if (isFromWrapper && clazz.isArray() && !Byte.TYPE.equals(clazz.getComponentType())) {
        clazz = clazz.getComponentType();
      }
      mapClass(part, clazz);
    }
  }
}

origin: org.apache.cxf/cxf-rt-databinding-xmlbeans

@Override
public void begin(MessagePartInfo part) {
  LOG.finest(part.getName().toString());
  // Check to see if the WSDL information has been filled in for us.
  if (part.getTypeQName() != null || part.getElementQName() != null) {
    checkForExistence(part);
    return;
  }
  
  Class<?> clazz = part.getTypeClass();
  if (clazz == null) {
    return;
  }
  boolean isFromWrapper = part.getMessageInfo().getOperation().isUnwrapped();
  if (isFromWrapper && clazz.isArray() && !Byte.TYPE.equals(clazz.getComponentType())) {
    clazz = clazz.getComponentType();
  }
  mapClass(part, clazz);
}
private void mapClass(MessagePartInfo part, Class<?> clazz) {
origin: org.apache.cxf/cxf-rt-databinding-jibx

@Override
public void begin(MessagePartInfo part) {
  LOG.finest(part.getName().toString());
  // Check to see if the WSDL information has been filled in for us.
  if (part.getTypeQName() != null || part.getElementQName() != null) {
    checkForExistence(part);
    return;
  }
  Class<?> clazz = part.getTypeClass();
  if (clazz == null) {
    return;
  }
  boolean isFromWrapper = part.getMessageInfo().getOperation().isUnwrapped();
  if (isFromWrapper && clazz.isArray() && !Byte.TYPE.equals(clazz.getComponentType())) {
    clazz = clazz.getComponentType();
  }
  mapClass(part, clazz);
}
origin: apache/cxf

} else if (part.getMessageInfo().getOperation().isUnwrapped() && el.getMaxOccurs() != 1) {
origin: apache/cxf

public void checkForExistence(MessagePartInfo part) {
  QName qn = part.getElementQName();
  if (qn != null) {
    XmlSchemaElement el = schemas.getElementByQName(qn);
    if (el == null) {
      Class<?> clazz = part.getTypeClass();
      if (clazz == null) {
        return;
      }
      boolean isFromWrapper = part.getMessageInfo().getOperation().isUnwrapped();
      if (isFromWrapper && clazz.isArray() && !Byte.TYPE.equals(clazz.getComponentType())) {
        clazz = clazz.getComponentType();
      }
      JAXBBeanInfo beanInfo = getBeanInfo(clazz);
      if (beanInfo == null) {
        if (Exception.class.isAssignableFrom(clazz)) {
          QName name = (QName)part.getMessageInfo().getProperty("elementName");
          part.setElementQName(name);
          buildExceptionType(part, clazz);
        }
        return;
      }
      QName typeName = getTypeName(beanInfo);
      createBridgeXsElement(part, qn, typeName);
    } else if (part.getXmlSchema() == null) {
      part.setXmlSchema(el);
    }
  }
}
origin: apache/cxf

  @Override
  public void begin(MessagePartInfo part) {
    // the unwrapped parts build for wrapped operations don't have real elements.
    if (part.isElement() && !part.getMessageInfo().getOperation().isUnwrapped()) {
      try {
        schemaCollection.validateElementName(part.getName(), part.getElementQName());
      } catch (InvalidXmlSchemaReferenceException ixsre) {
        complaints.append(part.getName() + " part element name " + ixsre.getMessage() + "\n");
      }
    } else if (!part.getMessageInfo().getOperation().isUnwrapped()) {
      if (part.getTypeQName() == null) {
        complaints.append(part.getName() + " of message "
                 + part.getMessageInfo().getName()
                 + " part type QName null.\n");
      } else {
        try {
          schemaCollection.validateTypeName(part.getName(), part.getTypeQName());
        } catch (InvalidXmlSchemaReferenceException ixsre) {
          complaints.append(part.getName() + " part type name " + ixsre.getMessage() + "\n");
        }
      }
    }
  }
}
origin: org.apache.cxf/cxf-api

  @Override
  public void begin(MessagePartInfo part) {
    // the unwrapped parts build for wrapped operations don't have real elements.
    if (part.isElement() && !part.getMessageInfo().getOperation().isUnwrapped()) {
      try {
        schemaCollection.validateElementName(part.getName(), part.getElementQName());
      } catch (InvalidXmlSchemaReferenceException ixsre) {
        complaints.append(part.getName() + " part element name " + ixsre.getMessage() + "\n");
      }
    } else if (!part.getMessageInfo().getOperation().isUnwrapped()) {
      if (part.getTypeQName() == null) {
        complaints.append(part.getName() + " of message " 
                 + part.getMessageInfo().getName() 
                 + " part type QName null.\n");
      } else {
        try {
          schemaCollection.validateTypeName(part.getName(), part.getTypeQName());
        } catch (InvalidXmlSchemaReferenceException ixsre) {
          complaints.append(part.getName() + " part type name " + ixsre.getMessage() + "\n");
        }
      }
    }
  }
}
origin: org.apache.cxf/cxf-bundle-jaxrs

  @Override
  public void begin(MessagePartInfo part) {
    // the unwrapped parts build for wrapped operations don't have real elements.
    if (part.isElement() && !part.getMessageInfo().getOperation().isUnwrapped()) {
      try {
        schemaCollection.validateElementName(part.getName(), part.getElementQName());
      } catch (InvalidXmlSchemaReferenceException ixsre) {
        complaints.append(part.getName() + " part element name " + ixsre.getMessage() + "\n");
      }
    } else if (!part.getMessageInfo().getOperation().isUnwrapped()) {
      if (part.getTypeQName() == null) {
        complaints.append(part.getName() + " of message " 
                 + part.getMessageInfo().getName() 
                 + " part type QName null.\n");
      } else {
        try {
          schemaCollection.validateTypeName(part.getName(), part.getTypeQName());
        } catch (InvalidXmlSchemaReferenceException ixsre) {
          complaints.append(part.getName() + " part type name " + ixsre.getMessage() + "\n");
        }
      }
    }
  }
}
origin: org.apache.cxf/cxf-core

  @Override
  public void begin(MessagePartInfo part) {
    // the unwrapped parts build for wrapped operations don't have real elements.
    if (part.isElement() && !part.getMessageInfo().getOperation().isUnwrapped()) {
      try {
        schemaCollection.validateElementName(part.getName(), part.getElementQName());
      } catch (InvalidXmlSchemaReferenceException ixsre) {
        complaints.append(part.getName() + " part element name " + ixsre.getMessage() + "\n");
      }
    } else if (!part.getMessageInfo().getOperation().isUnwrapped()) {
      if (part.getTypeQName() == null) {
        complaints.append(part.getName() + " of message "
                 + part.getMessageInfo().getName()
                 + " part type QName null.\n");
      } else {
        try {
          schemaCollection.validateTypeName(part.getName(), part.getTypeQName());
        } catch (InvalidXmlSchemaReferenceException ixsre) {
          complaints.append(part.getName() + " part type name " + ixsre.getMessage() + "\n");
        }
      }
    }
  }
}
origin: org.apache.cxf/cxf-rt-core

if (part.getMessageInfo().getOperation().isUnwrapped()
  && Boolean.TRUE.equals(part.getProperty(HEADER))) {
origin: org.apache.cxf/cxf-rt-ws-addr

if (op.isUnwrapped()) {
  op = ((UnwrappedOperationInfo)op).getWrappedOperation();
org.apache.cxf.service.modelOperationInfoisUnwrapped

Popular methods of OperationInfo

  • getName
    Returns the name of the Operation.
  • getInput
  • getOutput
  • getInterface
  • getInputName
  • getProperty
  • getUnwrappedOperation
  • isOneWay
  • getFaults
    Returns all faults for this operation.
  • getOutputName
  • isUnwrappedCapable
  • setProperty
  • isUnwrappedCapable,
  • setProperty,
  • setInput,
  • setOutput,
  • createMessage,
  • hasOutput,
  • addFault,
  • hasFaults,
  • equals

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • addToBackStack (FragmentTransaction)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now