Home | History | Annotate | Download | only in message

Lines Matching defs:content

21  * Content list for multipart mime content type.
27 private List<Content> contentList = new LinkedList<Content>();
36 * Creates a default content list.
47 * @see gov.nist.javax.sip.message.MultipartMimeContentExt#add(gov.nist.javax.sip.message.Content)
49 public boolean add(Content content) {
50 return contentList.add((ContentImpl) content);
71 for (Content content : this.contentList) {
72 stringBuffer.append(content.toString());
79 * unpack a multipart mime packet and return a list of content packets.
81 * @return -- an iterator of Content blocks.
90 this.contentList = new LinkedList<Content>();
91 ContentImpl content = new ContentImpl(body, delimiter);
92 content.setContentTypeHeader(this.getContentTypeHeader());
93 this.contentList.add(content);
121 throw new ParseException("no content type header found in " + nextPart, 0);
125 throw new ParseException("No content [" + nextPart + "]", 0);
128 ContentImpl content = new ContentImpl(rest, boundary);
134 content.setContentTypeHeader((ContentTypeHeader) header);
136 content.setContentDispositionHeader((ContentDispositionHeader) header);
140 contentList.add(content);
155 public Content getContentByType(String contentType, String contentSubtype) {
156 Content retval = null;
159 for (Content content : contentList) {
160 if (content.getContentTypeHeader().getContentType().equalsIgnoreCase(contentType)
161 && content.getContentTypeHeader().getContentSubType().equalsIgnoreCase(
163 retval = content;
175 * java.lang.String, gov.nist.javax.sip.message.Content)
177 public void addContent(Content content) {
178 this.add(content);
181 public Iterator<Content> getContents() {