- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.getPosition()
方法的一些代码示例,展示了WebMethod.getPosition()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebMethod.getPosition()
方法的具体详情如下:
包路径:org.codehaus.enunciate.contract.jaxws.WebMethod
类名称:WebMethod
方法名:getPosition
暂无
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return method.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return webMethod.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
public SourcePosition getPosition() {
return webMethod.getPosition();
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Validates a request wrapper.
*
* @param wrapper The wrapper.
* @param alreadyVisited The list of bean names already visited.
* @return The validation result.
*/
public ValidationResult validateRequestWrapper(RequestWrapper wrapper, Set<String> alreadyVisited) {
AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
ValidationResult result = new ValidationResult();
String requestBeanName = wrapper.getRequestBeanName();
if (!alreadyVisited.add(requestBeanName)) {
result.addError(wrapper.getWebMethod().getPosition(), requestBeanName + " conflicts with another generated bean name. Please use the @RequestWrapper " +
"annotation to customize the bean name.");
}
else if (ape.getTypeDeclaration(requestBeanName) != null) {
result.addError(wrapper.getWebMethod().getPosition(), requestBeanName + " is an existing class. Either move it, or customize the request bean " +
"class name with the @RequestWrapper annotation.");
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Validates a response wrapper.
*
* @param wrapper The wrapper.
* @param alreadyVisited The list of bean names already visited.
* @return The validation result.
*/
public ValidationResult validateResponseWrapper(ResponseWrapper wrapper, Set<String> alreadyVisited) {
AnnotationProcessorEnvironment ape = Context.getCurrentEnvironment();
ValidationResult result = new ValidationResult();
String responseBeanName = wrapper.getResponseBeanName();
if (!alreadyVisited.add(responseBeanName)) {
result.addError(wrapper.getWebMethod().getPosition(), responseBeanName + " conflicts with another generated bean name. Please use the @ResponseWrapper " +
"annotation to customize the bean name.");
}
else if (ape.getTypeDeclaration(responseBeanName) != null) {
result.addError(wrapper.getWebMethod().getPosition(), responseBeanName + " is an existing class. Either move it, or customize the response bean " +
"class name with the @ResponseWrapper annotation.");
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
@Override
public ValidationResult validateEndpointInterface(EndpointInterface ei) {
ValidationResult result = new ValidationResult();
HashSet<String> uniqueMethodNames = new HashSet<String>();
for (WebMethod webMethod : ei.getWebMethods()) {
if (!uniqueMethodNames.add(webMethod.getSimpleName())) {
result.addError(webMethod.getPosition(), "Sorry, the xfire client module doesn't support overloaded methods yet. Unfortunately, each method has " +
"to have a unique name.");
}
for (WebParam webParam : webMethod.getWebParameters()) {
if (webParam.isOutput()) {
//todo: add support for in in/out parameters.
result.addError(webParam.getPosition(), "The xfire client module doesn't support IN/OUT or OUT parameters yet....");
}
}
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
/**
* Gets the xml type of this result.
*
* @return The xml type of this result.
*/
public XmlType getXmlType() {
try {
XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
if (xmlType == null) {
xmlType = XmlTypeFactory.getXmlType(getType());
}
return xmlType;
}
catch (XmlTypeException e) {
throw new ValidationException(method.getPosition(), e.getMessage());
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
for (ReferenceType referenceType : getThrownTypes()) {
if (!(referenceType instanceof DeclaredType)) {
throw new ValidationException(getPosition(), "Thrown type must be a declared type.");
throw new ValidationException(getPosition(), "Unknown declaration for " + referenceType);
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
for (ReferenceType referenceType : getThrownTypes()) {
if (!(referenceType instanceof DeclaredType)) {
throw new ValidationException(getPosition(), "Method " + getSimpleName() + " of " + endpointInterface.getQualifiedName() + ": Thrown type must be a declared type.");
throw new ValidationException(getPosition(), "Method " + getSimpleName() + " of " + endpointInterface.getQualifiedName() + ": unknown declaration for " + referenceType);
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
result.addError(webMethod.getPosition(), "Enunciate doesn't allow declaring a target namespace for a request wrapper that is different " +
"from the target namespace of the endpoint interface. If you really must, declare the parameter style BARE and use an xml root element from " +
"another namespace for the parameter.");
result.addError(webMethod.getPosition(), "Enunciate doesn't allow declaring a target namespace for a response wrapper that is " +
"different from the target namespace of the endpoint interface. If you really must, declare the parameter style BARE and use an xml root " +
"element from another namespace for the return value.");
WebMethod otherMethod = implicitElementNames.put(el.getElementName(), webMethod);
if (otherMethod != null) {
result.addError(webMethod.getPosition(), "Web method defines a message part named '" + el.getElementName() +
"' that is identical to the name of a web message part defined in " + otherMethod.getPosition() + ". Please use annotations to disambiguate.");
result.addError(webMethod.getPosition(), "Enunciate doesn't allow methods to return a web result with a target namespace that is " +
"declared different from the target namespace of its endpoint interface. If you really want to, declare the parameter style BARE and use " +
"an xml root element from another namespace for the return value.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
public ValidationResult validateWebMethod(WebMethod webMethod) {
ValidationResult result = new ValidationResult();
if (!webMethod.getModifiers().contains(Modifier.PUBLIC)) {
result.addError(webMethod.getPosition(), "A non-public method cannot be a web method.");
result.addError(webMethod.getPosition(), "A method marked as excluded cannot be a web method.");
result.addError(webMethod.getPosition(), "Enunciate doesn't support ENCODED-use web methods.");
result.addError(webMethod.getPosition(), "A one-way method must have a void return type.");
result.addError(webMethod.getPosition(), "A one-way method can't throw any exceptions.");
result.addError(webMethod.getPosition(), "A BARE web method must have a DOCUMENT binding style.");
result.addError(webMethod.getPosition(), "A one-way method cannot have any 'out' messages (i.e. non-void return values, thrown exceptions, " +
"out parameters, or in/out parameters).");
result.addWarning(webMethod.getPosition(), "The header return value that is " + description + " may not (de)serialize " +
"correctly. The spec is unclear as to how this should be handled.");
DecoratedTypeMirror paramType = (DecoratedTypeMirror) ((WebParam) webMessage).getType();
if (paramType.isArray()) {
result.addError(webMethod.getPosition(), "A BARE web method must not have an array as a parameter.");
result.addError(webMethod.getPosition(), "A BARE web method shouldn't have a request wrapper.");
result.addError(webMethod.getPosition(), "A BARE web method shouldn't have a response wrapper.");
result.addError(webMethod.getPosition(), "A BARE web method must not have more than one 'in' parameter.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
@Override
public ValidationResult validateEndpointInterface(EndpointInterface ei) {
ValidationResult result = super.validateEndpointInterface(ei);
if (!isAMFTransient(ei)) {
for (WebMethod webMethod : ei.getWebMethods()) {
if (!isAMFTransient(webMethod)) {
if (!isSupported(webMethod.getWebResult())) {
result.addError(webMethod.getPosition(), "AMF doesn't support '" + webMethod.getWebResult() + "' as a return type.");
}
for (WebParam webParam : webMethod.getWebParameters()) {
if (!isSupported(webParam.getType())) {
result.addError(webParam.getPosition(), "AMF doesn't support '" + webParam.getType() + "' as a parameter type.");
}
}
}
}
if (ei.getEndpointImplementations().size() > 1) {
ArrayList<String> impls = new ArrayList<String>();
for (EndpointImplementation impl : ei.getEndpointImplementations()) {
impls.add(impl.getQualifiedName());
}
result.addError(ei.getPosition(), "Sorry, AMF doesn't support two endpoint implementations for interface '" + ei.getQualifiedName() +
"'. Found " + ei.getEndpointImplementations().size() + " implementations (" + impls.toString() + ").");
}
}
return result;
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
if (!isGWTTransient(webMethod)) {
if (!isSupported(webMethod.getWebResult())) {
result.addError(webMethod.getPosition(), "GWT doesn't support '" + webMethod.getWebResult() + "' as a return type.");
代码示例来源:origin: org.codehaus.enunciate/enunciate-core
/**
* Gets the xml type of this result.
*
* @return The xml type of this result.
*/
public XmlType getXmlType() {
try {
XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
if (xmlType == null) {
xmlType = XmlTypeFactory.getXmlType(getType());
}
return xmlType;
}
catch (XmlTypeException e) {
throw new ValidationException(method.getPosition(), "Result of method " + getWebMethod().getSimpleName() + " of " + getWebMethod().getDeclaringEndpointInterface().getQualifiedName() + ": " + e.getMessage());
}
}
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
result.addError(webMethod.getPosition(), "For some reason, JAXB doesn't support maps in return values or in parameters. Still need to investigate further the reason....");
代码示例来源:origin: org.codehaus.enunciate/enunciate-full
for (WebMethod webMethod : ei.getWebMethods()) {
if (!uniquelyNamedWebMethods.add(webMethod)) {
result.addError(webMethod.getPosition(), "Web methods must have unique operation names. Use annotations to disambiguate.");
我正在使用 Enunciate 为我正在开发的 Wicket Web 应用程序生成 SOAP 端点,但我有几个问题尚未找到解决方案。 1 如何更改 xsd 文件的名称?我浏览了常见问题解答,它告诉我做
我们有一些引用“http://enunciate.codehaus.org/schemas/enunciate-1.27.xsd”的 XML 文件',现在已经消失了。 我正在使用的当前子: https
如何获取生成的发音文档中填充的类型的描述字段? 我们正在使用 jaxb2-maven-plugin 从 jaxb 生成类。无论我如何使用 记录元素或者
问题:我有一些 java 模型同时用于某些端点上的请求和响应正文。问题是,根据特定请求,我不想显示该模型中的所有字段;另外,在响应中,也许我想显示同一模型中完全不同的字段。 问题:使用 Enuncia
我有一些 REST 服务(消费和生产 application/json)并且我使用 @TypeHint生成文档。 现在我有这样的东西: import javax.ws.rs.core.Response
我正在以 RESTful 方式创建 Web API。 Grails 当然对创建 REST web 服务有很好的支持。 Enunciate声称在 API 部分有所帮助,其中文档、客户端库等很重要。 这篇
我正在使用 enunciate 来记录我的 REST API。我能够正确生成文档并且已经使用它相当长一段时间了。 我现在的问题是..我有几个具有多个端点方法的服务类。 public interface
我想使用 enunciate 生成 wadl。为此我需要进行哪些配置更改? 根据 http://jira.codehaus.org/browse/ENUNCIATE-688 ,阐明似乎支持 wadl
给定一个抽象的、通用的 Resource 类和一个具体的实现: public abstract class AbstractResource { @Autowired private
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod类的一些代码示例,展示了WebMethod类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebFault类的一些代码示例,展示了WebFault类的具体用法。这些代码示例主要来源于Github
我想使用 Enunciate 1.25 记录几个 RESTful Web 服务使用 Maven。如果我在没有自定义 enunciate.xml 的情况下构建,则所有客户端库都按预期构建。 ...
当前 Enunciate 生成 REST API 文档,但响应正文不包含有关响应的 JSON 结构的信息。根据我的理解,如果我将由 Jersey 序列化/反序列化为 JSON 的数据实体包含在类中,则
我正在使用Enunciate要构建原型(prototype) REST api,需要包含一个包含自定义代码的 jar 作为库。 我的 Ant 脚本如下所示:
我有多个 Maven 模块,它们为我的服务公开各种 REST。最重要的是,我有一个(几乎是空的)模块,称为 project-docs,我想使用它并生成一个聚合的 Enunciate api 文档。不幸
我正在使用 enunciate 并希望从文档中排除某些 jaxb 生成的类。如何做到这一点? 是否可以通过 xsd 添加 org.codehaus.enunciate.XmlTransient 注释?
我的 RESTEasy 代码中有以下注释: @Path("/v1/authenticateService") Enunciate 在文档中生成一个“挂载点”: /rest/v1/authenticat
我正在尝试使用 enunciate v1.26.2 ant 任务创建 java 客户端库。问题是每次我尝试这样做时,我都会收到这条警告消息: WARNING: Unknown artifact 'ja
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.isOneWay()方法的一些代码示例,展示了WebMethod.isOneWay(
本文整理了Java中org.codehaus.enunciate.contract.jaxws.WebMethod.getModifiers()方法的一些代码示例,展示了WebMethod.getMo
我是一名优秀的程序员,十分优秀!