APISonar


org.netbeans.modules.websvc.saas.codegen.Constants.MimeType.XML

> org > netbeans > modules > websvc > saas > codegen > Constants > MimeType > XML
org APIs netbeans APIs modules APIs websvc APIs saas APIs codegen APIs Constants APIs MimeType APIs XML APIs

Example 1
public static MimeType[] deriveMimeTypes(SoapClientOperationInfo[] operations) {
        if (String.class.getName().equals(operations[operations.length - 1].getOperation().getReturnTypeName())) {
            return new MimeType[]{MimeType.HTML                    };
        } else {
            return new MimeType[]{MimeType.XML                    };//TODO  MimeType.JSON };
        }
    }
Example 2
public RestClientSaasBean(WadlSaasMethod m, boolean isDropTargetWeb)  throws IOException {
        super(m.getSaas(), Util.deriveResourceName(m.getName()), null, 
                Util.deriveUriTemplate(m.getName()), new MimeType[]{MimeType.XML}, 
                new String[]{"java.lang.String"},       //NOI18N
                new HttpMethodType[]{HttpMethodType.GET});
    
        this.m = m;
        setIsDropTargetWeb(isDropTargetWeb);
        init();
    }
Example 3
public static String getDefaultRepresetationClass(MimeType mime) {
        if (mime == MimeType.XML || mime == MimeType.TEXT || mime == MimeType.HTML || mime == MimeType.JSON) {
            return String.class.getName();
        }
        return String.class.getName();
    }