Java源码示例:com.sun.xml.internal.org.jvnet.mimepull.MIMEConfig

示例1
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例2
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例3
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例4
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例5
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例6
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例7
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}
 
示例8
protected  void readSOAPPart() throws  MessagingException {
    try {
        if (soapPart != null) {
            return;
        }
        in = dataSource.getInputStream();
        MIMEConfig config = new MIMEConfig(); //use defaults
        mm = new MIMEMessage(in, boundary, config);
        String st = contType.getParameter("start");
        if(startParam == null) {
            soapPart = mm.getPart(0);
        } else {
              // Strip <...> from root part's Content-I
            if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
                st = st.substring(1, st.length()-1);
            }
            startParam = st;
            soapPart = mm.getPart(startParam);

        }
    } catch (IOException ex) {
        throw new MessagingException("No inputstream from datasource", ex);
    }
}