当前位置: 首页>>代码示例>>Java>>正文


Java Mode.OUT属性代码示例

本文整理汇总了Java中javax.jws.WebParam.Mode.OUT属性的典型用法代码示例。如果您正苦于以下问题:Java Mode.OUT属性的具体用法?Java Mode.OUT怎么用?Java Mode.OUT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.jws.WebParam.Mode的用法示例。


在下文中一共展示了Mode.OUT属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPart

@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;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:WSDLBoundOperationImpl.java

示例2: login

@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/DataIntegrationInterface/LoginRequest", fault =
    { @FaultAction(value="http://www.informatica.com/wsh/DataIntegrationInterface/login/Fault/Fault",
        className=com.informatica.wsh.Fault.class) }, output="http://www.informatica.com/wsh/DataIntegrationInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
  name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="param", name="Login")
  com.informatica.wsh.LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="Context", name="Context", header=true, mode=Mode.OUT)
  Holder<com.informatica.wsh.SessionHeader> Context)
  throws com.informatica.wsh.Fault;
 
开发者ID:consag,项目名称:fitnessefixtures,代码行数:13,代码来源:DataIntegrationInterface.java

示例3: login

@WebMethod
@SOAPBinding(parameterStyle=ParameterStyle.BARE)
@Action(input="http://www.informatica.com/wsh/MetadataInterface/LoginRequest", fault =
    { @FaultAction(value="http://www.informatica.com/wsh/MetadataInterface/login/Fault/Fault",
        className = Fault.class) }, output="http://www.informatica.com/wsh/MetadataInterface/LoginResponse")
@WebResult(targetNamespace="http://www.informatica.com/wsh", partName="param",
  name="LoginReturn")
public String login(@WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="param", name="Login")
  LoginRequest param, @WebParam(targetNamespace="http://www.informatica.com/wsh",
    partName="Context", name="Context", header=true, mode=Mode.OUT)
  Holder<SessionHeader> Context)
  throws Fault;
 
开发者ID:consag,项目名称:fitnessefixtures,代码行数:13,代码来源:MetadataInterface.java

示例4: numOutputBodyParams

/**
 * @param pds
 * @return Number of inout or out parameters
 */
static int numOutputBodyParams(ParameterDescription[] pds) {
    int count = 0;
    for (int i=0; i<pds.length; i++) {
        // TODO Need to change this to also detect not attachment
        if (!pds[i].isHeader()) {
            if (pds[i].getMode() == Mode.INOUT ||
                    pds[i].getMode() == Mode.OUT) {
                count++;
            }
        }
    }
    return count;
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:17,代码来源:MethodMarshallerUtils.java

示例5: echo

/**
 * 
 * @param request
 * @param dummyAttachmentINOUT
 * @param dummyAttachmentOUT
 * @param response
 * @param dummyAttachmentIN
 */
@WebMethod
public void echo(
    @WebParam(name = "request", partName = "request")
    String request,
    @WebParam(name = "dummyAttachmentIN", partName = "dummyAttachmentIN")
    String dummyAttachmentIN,
    @WebParam(name = "dummyAttachmentINOUT", mode = Mode.INOUT, partName = "dummyAttachmentINOUT")
    Holder<DataHandler> dummyAttachmentINOUT,
    @WebParam(name = "response", mode = Mode.OUT, partName = "response")
    Holder<String> response,
    @WebParam(name = "dummyAttachmentOUT", mode = Mode.OUT, partName = "dummyAttachmentOUT")
    Holder<String> dummyAttachmentOUT);
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:20,代码来源:RPCLitSWA.java

示例6: getPart

public WSDLPartImpl getPart(String partName, Mode mode) {
    if(mode==Mode.IN){
        return inParts.get(partName);
    }else if(mode==Mode.OUT){
        return outParts.get(partName);
    }
    return null;
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:8,代码来源:WSDLBoundOperationImpl.java

示例7: isOUT

public boolean isOUT() {
    return mode==Mode.OUT;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:3,代码来源:ParameterImpl.java

示例8: addPart

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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:WSDLBoundOperationImpl.java

示例9: isOUT

public boolean isOUT(){
    return (mode == Mode.OUT);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:3,代码来源:Parameter.java

示例10: isOUT

public boolean isOUT(){
    if(mode!=null)
        return (mode == Mode.OUT);
    return false;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:MessagePart.java

示例11: swaAttachment2

/**
 * This method passes two SWA attachments as a request
 * and expects two SWA attachments as a response.
 * Note that the body content in both cases is empty.
 * (See the wsdl)
 * @param attachment (swa)
 * @return attachment (swa)
 */
@WebMethod(operationName="swaAttachment2", action="swaAttachment2")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public void swaAttachment2(
      @XmlJavaTypeAdapter(HexBinaryAdapter.class)
      @WebParam(name = "jpegImage1Request", targetNamespace = "", partName = "jpegImage1Request")
      byte[] attachment,
      
      @XmlJavaTypeAdapter(HexBinaryAdapter.class)
      @WebParam(name = "jpegImage2Request", targetNamespace = "", partName = "jpegImage2Request")
      byte[] attachment2,
      
      @XmlJavaTypeAdapter(HexBinaryAdapter.class)
      @WebParam(name = "jpegImage1Response", 
                targetNamespace = "", 
                partName = "jpegImage1Response",
                mode= Mode.OUT)
      Holder<byte[]> attachmentOut1,
      
      @XmlJavaTypeAdapter(HexBinaryAdapter.class)
      @WebParam(name = "jpegImage2Response", 
                targetNamespace = "", 
                partName = "jpegImage2Response",
                mode= Mode.OUT)
      Holder<byte[]> attachmentOut2) {
      
    if (attachment == null || attachment.length == 0){
        throw new RuntimeException("Received empty first attachment");
    } else if (attachment2 == null || attachment2.length == 0){
        throw new RuntimeException("Received empty second attachment");
    } else if (attachment[0] != '1') {
        throw new RuntimeException("First attachment is not '1'");
    } else if (attachment2[0] != '2') {
        throw new RuntimeException("Second attachment is not '2'");
    } else {
        attachmentOut1.value = new byte[1];
        attachmentOut1.value[0] = '3';
        attachmentOut2.value = new byte[1];
        attachmentOut2.value[0] = '4';
    }
    
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:49,代码来源:SWAMTOMPortTypeImpl.java

示例12: addPart

public void addPart(WSDLPartImpl part, Mode mode){
    if(mode==Mode.IN)
        inParts.put(part.getName(), part);
    else if(mode==Mode.OUT)
        outParts.put(part.getName(), part);
}
 
开发者ID:alexkasko,项目名称:openjdk-icedtea7,代码行数:6,代码来源:WSDLBoundOperationImpl.java


注:本文中的javax.jws.WebParam.Mode.OUT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。