Tuomas Kiviaho wrote: > > I'd interpret that resource response falls outside matching process and > getWriter is allowed without explicit setContentType call. >
Current source code and javadocs (which are not yet in svn) confirm the former interpretation to be true. <http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/doc/javax/portlet/MimeResponse.html#setContentType(java.lang.String)> <http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/doc/javax/portlet/RenderResponse.html#setContentType(java.lang.String)> Moved throws clause is the key. but latter isn't since here javadocs haven't been changed?!? I hope this'll change in the next release so that resource response isn't required to have content type set prior calling these two methods. <http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/doc/javax/portlet/MimeResponse.html#getPortletOutputStream()> <http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/doc/javax/portlet/MimeResponse.html#getWriter()> -- View this message in context: http://www.nabble.com/Content-Type-handling-for-JSR-286-tf4729371.html#a13534570 Sent from the Pluto - Dev mailing list archive at Nabble.com.
