Java Code Examples for com.sun.tools.internal.ws.wsdl.document.mime.MIMEContent#getPart()

The following examples show how to use com.sun.tools.internal.ws.wsdl.document.mime.MIMEContent#getPart() . 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: WSDLModelerBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 2
Source File: WSDLModelerBase.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 3
Source File: WSDLModelerBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 4
Source File: WSDLModelerBase.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 5
Source File: WSDLModelerBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 6
Source File: WSDLModelerBase.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 7
Source File: WSDLModelerBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 8
Source File: WSDLModelerBase.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 9
Source File: WSDLModelerBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 10
Source File: WSDLModelerBase.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 11
Source File: WSDLModelerBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 12
Source File: WSDLModelerBase.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 13
Source File: WSDLModelerBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 14
Source File: WSDLModelerBase.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}
 
Example 15
Source File: WSDLModelerBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private MessagePart getMimeContentPart(Message message, MIMEPart part) {
    for( MIMEContent mimeContent : getMimeContents(part) ) {
        String mimeContentPartName = mimeContent.getPart();
        MessagePart mPart = message.getPart(mimeContentPartName);
        //RXXXX mime:content MUST have part attribute
        if(null == mPart) {
            error(mimeContent,  ModelerMessages.WSDLMODELER_ERROR_PARTS_NOT_FOUND(mimeContentPartName, message.getName()));
        }
        mPart.setBindingExtensibilityElementKind(MessagePart.WSDL_MIME_BINDING);
        return mPart;
    }
    return null;
}
 
Example 16
Source File: WSDLModelerBase.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private String getMimeContentPartName(MIMEContent mimeContent){
    /*String partName = mimeContent.getPart();
    if(partName == null){
        throw new ModelerException("mimemodeler.invalidMimeContent.missingPartAttribute",
                new Object[] {info.operation.getName().getLocalPart()});
    }
    return partName;*/
    return mimeContent.getPart();
}