Java Code Examples for com.sun.xml.internal.ws.api.model.JavaMethod#getOperationName()
The following examples show how to use
com.sun.xml.internal.ws.api.model.JavaMethod#getOperationName() .
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: W3CAddressingWSDLGeneratorExtension.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
protected static final String getDefaultAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = "/"; // TODO: is this the correct way to find the separator ? try { URI uri = new URI(tns); if(uri.getScheme().equalsIgnoreCase("urn")) delim = ":"; } catch (URISyntaxException e) { LOGGER.warning("TargetNamespace of WebService is not a valid URI"); } if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay())?method.getOperationName():method.getOperationName()+"Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 2
Source File: W3CAddressingWSDLGeneratorExtension.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
protected static final String getDefaultAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = "/"; // TODO: is this the correct way to find the separator ? try { URI uri = new URI(tns); if(uri.getScheme().equalsIgnoreCase("urn")) delim = ":"; } catch (URISyntaxException e) { LOGGER.warning("TargetNamespace of WebService is not a valid URI"); } if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay())?method.getOperationName():method.getOperationName()+"Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 3
Source File: W3CAddressingWSDLGeneratorExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
protected static final String getDefaultAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = "/"; // TODO: is this the correct way to find the separator ? try { URI uri = new URI(tns); if(uri.getScheme().equalsIgnoreCase("urn")) delim = ":"; } catch (URISyntaxException e) { LOGGER.warning("TargetNamespace of WebService is not a valid URI"); } if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay())?method.getOperationName():method.getOperationName()+"Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 4
Source File: W3CAddressingWSDLGeneratorExtension.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
protected static final String getDefaultAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = "/"; // TODO: is this the correct way to find the separator ? try { URI uri = new URI(tns); if(uri.getScheme().equalsIgnoreCase("urn")) delim = ":"; } catch (URISyntaxException e) { LOGGER.warning("TargetNamespace of WebService is not a valid URI"); } if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay())?method.getOperationName():method.getOperationName()+"Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 5
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationInputExtension(final TypedXmlWriter input, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(input, WSDLBoundOperation.class, ScopeType.INPUT_MESSAGE, operationName); LOGGER.exiting(); }
Example 6
Source File: PolicyWSDLGeneratorExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); final QName operationName = (method == null) ? null : new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(operation, WSDLBoundOperation.class, ScopeType.OPERATION, operationName); LOGGER.exiting(); }
Example 7
Source File: PolicyWSDLGeneratorExtension.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationOutputExtension(final TypedXmlWriter output, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(output, WSDLBoundOperation.class, ScopeType.OUTPUT_MESSAGE, operationName); LOGGER.exiting(); }
Example 8
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultOutputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be output name. // if there is input name in future, then here name=outputName //else use operation name as follows. String name = method.getOperationName() + "Response"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 9
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultInputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay()) ? method.getOperationName() : method.getOperationName() + "Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 10
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationOutputExtension(final TypedXmlWriter output, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(output, WSDLBoundOperation.class, ScopeType.OUTPUT_MESSAGE, operationName); LOGGER.exiting(); }
Example 11
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationInputExtension(final TypedXmlWriter input, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(input, WSDLBoundOperation.class, ScopeType.INPUT_MESSAGE, operationName); LOGGER.exiting(); }
Example 12
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); final QName operationName = (method == null) ? null : new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(operation, WSDLBoundOperation.class, ScopeType.OPERATION, operationName); LOGGER.exiting(); }
Example 13
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultOutputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be output name. // if there is input name in future, then here name=outputName //else use operation name as follows. String name = method.getOperationName() + "Response"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 14
Source File: PolicyWSDLGeneratorExtension.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); final QName operationName = (method == null) ? null : new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(operation, WSDLBoundOperation.class, ScopeType.OPERATION, operationName); LOGGER.exiting(); }
Example 15
Source File: PolicyWSDLGeneratorExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationExtension(final TypedXmlWriter operation, final JavaMethod method) { LOGGER.entering(); final QName operationName = (method == null) ? null : new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(operation, WSDLBoundOperation.class, ScopeType.OPERATION, operationName); LOGGER.exiting(); }
Example 16
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultInputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay()) ? method.getOperationName() : method.getOperationName() + "Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 17
Source File: PolicyWSDLGeneratorExtension.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationOutputExtension(final TypedXmlWriter output, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(output, WSDLBoundOperation.class, ScopeType.OUTPUT_MESSAGE, operationName); LOGGER.exiting(); }
Example 18
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultOutputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be output name. // if there is input name in future, then here name=outputName //else use operation name as follows. String name = method.getOperationName() + "Response"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 19
Source File: W3CAddressingMetadataWSDLGeneratorExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected static final String getDefaultInputAction(JavaMethod method) { String tns = method.getOwner().getTargetNamespace(); String delim = getDelimiter(tns); if (tns.endsWith(delim)) tns = tns.substring(0, tns.length() - 1); //this assumes that fromjava case there won't be input name. // if there is input name in future, then here name=inputName //else use operation name as follows. String name = (method.getMEP().isOneWay()) ? method.getOperationName() : method.getOperationName() + "Request"; return new StringBuilder(tns).append(delim).append( method.getOwner().getPortTypeName().getLocalPart()).append( delim).append(name).toString(); }
Example 20
Source File: PolicyWSDLGeneratorExtension.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public void addBindingOperationOutputExtension(final TypedXmlWriter output, final JavaMethod method) { LOGGER.entering(); final QName operationName = new QName(method.getOwner().getTargetNamespace(), method.getOperationName()); selectAndProcessBindingSubject(output, WSDLBoundOperation.class, ScopeType.OUTPUT_MESSAGE, operationName); LOGGER.exiting(); }