com.sun.xml.internal.ws.developer.StreamingAttachmentFeature Java Examples

The following examples show how to use com.sun.xml.internal.ws.developer.StreamingAttachmentFeature. 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: MimeMultipartParser.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #2
Source File: MimeMultipartParser.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #3
Source File: MimeMultipartParser.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #4
Source File: MimeMultipartParser.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #5
Source File: MimeMultipartParser.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #6
Source File: MimeMultipartParser.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #7
Source File: MimeMultipartParser.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #8
Source File: MimeMultipartParser.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public MimeMultipartParser(InputStream in, String cType, StreamingAttachmentFeature feature) {
        this.contentType = new ContentTypeImpl(cType);
//        ContentType ct = new ContentType(cType);
//        String boundary = ct.getParameter("boundary");
        String boundary = contentType.getBoundary();
        if (boundary == null || boundary.equals("")) {
            throw new WebServiceException("MIME boundary parameter not found" + contentType);
        }
        message = (feature != null)
                ? new MIMEMessage(in, boundary, feature.getConfig())
                : new MIMEMessage(in, boundary);
        // Strip <...> from root part's Content-ID
//        String st = ct.getParameter("start");
        String st = contentType.getRootId();
        if (st != null && st.length() > 2 && st.charAt(0) == '<' && st.charAt(st.length()-1) == '>') {
            st = st.substring(1, st.length()-1);
        }
        start = st;
    }
 
Example #9
Source File: XMLMessage.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #10
Source File: XMLMessage.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #11
Source File: XMLMessage.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #12
Source File: XMLMessage.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #13
Source File: XMLMessage.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #14
Source File: XMLMessage.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #15
Source File: XMLMessage.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #16
Source File: XMLMessage.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public XMLMultiPart(final String contentType, final InputStream is, WSFeatureList f) {
    super(SOAPVersion.SOAP_11);
    headerList = new HeaderList(SOAPVersion.SOAP_11);
    dataSource = createDataSource(contentType, is);
    this.feature = f.get(StreamingAttachmentFeature.class);
    this.features = f;
}
 
Example #17
Source File: MimeCodec.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #18
Source File: MimeCodec.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #19
Source File: MimeCodec.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #20
Source File: MimeCodec.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #21
Source File: MimeCodec.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #22
Source File: MimeCodec.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #23
Source File: MimeCodec.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}
 
Example #24
Source File: MimeCodec.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void decode(InputStream in, String contentType, Packet packet) throws IOException {
    MimeMultipartParser parser = new MimeMultipartParser(in, contentType, features.get(StreamingAttachmentFeature.class));
    decode(parser,packet);
}