Java Code Examples for javax.jws.WebParam.Mode#IN

The following examples show how to use javax.jws.WebParam.Mode#IN . 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: SOAPSEIModel.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param params
 * @param headers
 */
private void fillHeaders(Iterator<ParameterImpl> params, Set<QName> headers, Mode mode) {
    while (params.hasNext()) {
        ParameterImpl param = params.next();
        ParameterBinding binding = (mode == Mode.IN)?param.getInBinding():param.getOutBinding();
        QName name = param.getName();
        if (binding.isHeader() && !headers.contains(name)) {
            headers.add(name);
        }
    }
}
 
Example 2
Source File: WSDLBoundPortTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
 *
 * @param operation wsdl:operation@name value. Must be non-null.
 * @param part      wsdl:part@name such as value of soap:header@part. Must be non-null.
 * @param mode      {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
 * @return null if the binding could not be resolved for the part.
 */
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
    EditableWSDLBoundOperation op = get(operation);
    if (op == null) {
        //TODO throw exception
        return null;
    }
    if ((Mode.IN == mode) || (Mode.INOUT == mode))
        return op.getInputBinding(part);
    else
        return op.getOutputBinding(part);
}
 
Example 3
Source File: WSDLBoundOperationImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
Example 4
Source File: WSDLBoundPortTypeImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
 *
 * @param operation wsdl:operation@name value. Must be non-null.
 * @param part      wsdl:part@name such as value of soap:header@part. Must be non-null.
 * @param mode      {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
 * @return null if the binding could not be resolved for the part.
 */
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
    EditableWSDLBoundOperation op = get(operation);
    if (op == null) {
        //TODO throw exception
        return null;
    }
    if ((Mode.IN == mode) || (Mode.INOUT == mode))
        return op.getInputBinding(part);
    else
        return op.getOutputBinding(part);
}
 
Example 5
Source File: SOAPSEIModel.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param params
 * @param headers
 */
private void fillHeaders(Iterator<ParameterImpl> params, Set<QName> headers, Mode mode) {
    while (params.hasNext()) {
        ParameterImpl param = params.next();
        ParameterBinding binding = (mode == Mode.IN)?param.getInBinding():param.getOutBinding();
        QName name = param.getName();
        if (binding.isHeader() && !headers.contains(name)) {
            headers.add(name);
        }
    }
}
 
Example 6
Source File: SOAPSEIModel.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param params
 * @param headers
 */
private void fillHeaders(Iterator<ParameterImpl> params, Set<QName> headers, Mode mode) {
    while (params.hasNext()) {
        ParameterImpl param = params.next();
        ParameterBinding binding = (mode == Mode.IN)?param.getInBinding():param.getOutBinding();
        QName name = param.getName();
        if (binding.isHeader() && !headers.contains(name)) {
            headers.add(name);
        }
    }
}
 
Example 7
Source File: WSDLBoundOperationImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public EditableWSDLPart getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
Example 8
Source File: WSDLBoundPortTypeImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
 *
 * @param operation wsdl:operation@name value. Must be non-null.
 * @param part      wsdl:part@name such as value of soap:header@part. Must be non-null.
 * @param mode      {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
 * @return null if the binding could not be resolved for the part.
 */
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
    EditableWSDLBoundOperation op = get(operation);
    if (op == null) {
        //TODO throw exception
        return null;
    }
    if ((Mode.IN == mode) || (Mode.INOUT == mode))
        return op.getInputBinding(part);
    else
        return op.getOutputBinding(part);
}
 
Example 9
Source File: WSDLBoundPortTypeImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT
 *
 * @param operation wsdl:operation@name value. Must be non-null.
 * @param part      wsdl:part@name such as value of soap:header@part. Must be non-null.
 * @param mode      {@link Mode#IN} or {@link Mode#OUT}. Must be non-null.
 * @return null if the binding could not be resolved for the part.
 */
public ParameterBinding getBinding(QName operation, String part, Mode mode) {
    EditableWSDLBoundOperation op = get(operation);
    if (op == null) {
        //TODO throw exception
        return null;
    }
    if ((Mode.IN == mode) || (Mode.INOUT == mode))
        return op.getInputBinding(part);
    else
        return op.getOutputBinding(part);
}
 
Example 10
Source File: SOAPSEIModel.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @param params
 * @param headers
 */
private void fillHeaders(Iterator<ParameterImpl> params, Set<QName> headers, Mode mode) {
    while (params.hasNext()) {
        ParameterImpl param = params.next();
        ParameterBinding binding = (mode == Mode.IN)?param.getInBinding():param.getOutBinding();
        QName name = param.getName();
        if (binding.isHeader() && !headers.contains(name)) {
            headers.add(name);
        }
    }
}
 
Example 11
Source File: WSDLBoundOperationImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void addPart(EditableWSDLPart part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
Example 12
Source File: MessagePart.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    if(mode!=null)
        return (mode == Mode.IN);
    return false;
}
 
Example 13
Source File: Parameter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    return (mode == Mode.IN);
}
 
Example 14
Source File: Parameter.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    return (mode == Mode.IN);
}
 
Example 15
Source File: ParameterImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN() {
    return mode==Mode.IN;
}
 
Example 16
Source File: ParameterImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN() {
    return mode==Mode.IN;
}
 
Example 17
Source File: MessagePart.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    if(mode!=null)
        return (mode == Mode.IN);
    return false;
}
 
Example 18
Source File: IOParametrs.java    From netbeans with Apache License 2.0 4 votes vote down vote up
@Oneway()
@WebMethod(operationName="setSurname")
public void setSurname(@WebParam(name="surname", mode=Mode.IN) String surname) {
    String personSurname = surname;
}
 
Example 19
Source File: MessagePart.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    if(mode!=null)
        return (mode == Mode.IN);
    return false;
}
 
Example 20
Source File: Parameter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public boolean isIN(){
    return (mode == Mode.IN);
}