Hello,

there are some spec/api conflicts:

* Spec 2.0 rev23:

If the portlet does not specify a content type before the getWriter or
getPortletOutputStream methods the portlet container assumes the content
type of the PortletRequest.getResponseContentType() method and resolves
wildcards on a bestcan-do basis.


* API MimeResponse.getWriter() and MimeResponse.getPortletOutputStream():

     Before calling this method the content type of the render response
must be set using the setContentType(java.lang.String) method.
    Throws:
        java.io.IOException - if an input or output exception occurred
        java.lang.IllegalStateException - if the getPortletOutputStream
method has been called on this response, or if no content type was set
using the setContentType method.


What is the right? Try to resolve the content-type or rise an
IllegalStateException immediately? Or both of them, first try to resolve
and if it fails, raise the exception.

I think that must more exact specified.

So long, Kay.
-- 
Kay Schieck
[EMAIL PROTECTED]       0xCDC19038
Friedrich-Schiller-Universitaet Jena
Fakultaet fuer Mathematik und Informatik

Reply via email to