You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by Kay Schieck <sc...@inf.uni-jena.de> on 2007/09/05 15:03:27 UTC

Spec and API inconsistence

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
schieck@inf.uni-jena.de       0xCDC19038
Friedrich-Schiller-Universitaet Jena
Fakultaet fuer Mathematik und Informatik