Exemplo n.º 1
0
  private String getCustomizedOperationName(Operation operation) {
    JAXWSBinding jaxwsCustomization =
        (JAXWSBinding) getExtensionOfType(operation, JAXWSBinding.class);
    String operationName =
        (jaxwsCustomization != null)
            ? ((jaxwsCustomization.getMethodName() != null)
                ? jaxwsCustomization.getMethodName().getName()
                : null)
            : null;
    if (operationName != null) {
      if (Names.isJavaReservedWord(operationName)) {
        return null;
      }

      return operationName;
    }
    return operation.getName();
  }