pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/JSR362ConfigurationProcessor.java [452:490]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   private List<Supports> handleSupports(List<SupportsType> sts) {
      ArrayList<Supports> newSupps = new ArrayList<Supports>();
      for (SupportsType st : sts) {

         // validate Mime type & portlet mode
         MimeTypeType mtt = st.getMimeType();
         if (mtt == null || mtt.getValue() == null) {
            String warning = "Null Mime type, ignoring Supports block.";
            LOG.warn(warning);
            continue;
         }
         
         List<PortletModeType> pmlist = st.getPortletMode();
         if (pmlist.size() == 0) {
            String info = "No portlet modes found in Supports block.";
            LOG.trace(info);
         }
         List<WindowStateType> wslist = st.getWindowState();
         if (wslist.size() == 0) {
            String info = "No window states found in Supports block.";
            LOG.trace(info);
         }

         // set up Supports, discarding MIME type parameters & blanks
         String mimetype = mtt.getValue().replaceAll("([^;]*).*", "$1").replaceAll(" ", "");
         Supports sup = new SupportsImpl(mimetype);
         for (PortletModeType item : pmlist) {
            sup.addPortletMode(item.getValue());
         }
         for (WindowStateType item : wslist) {
            sup.addWindowState(item.getValue());
         }

         // add to model
         newSupps.add(sup);

      }
      return newSupps;
   }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pluto-container/src/main/java/org/apache/pluto/container/om/portlet/impl/JSR286ConfigurationProcessor.java [468:505]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   private List<Supports> handleSupports(List<SupportsType> sts) {
      ArrayList<Supports> newSupps = new ArrayList<Supports>();
      for (SupportsType st : sts) {

         // validate Mime type & portlet mode
         MimeTypeType mtt = st.getMimeType();
         if (mtt == null || mtt.getValue() == null) {
            String warning = "Null Mime type, ignoring Supports block.";
            LOG.warn(warning);
            continue;
         }
         List<PortletModeType> pmlist = st.getPortletMode();
         if (pmlist.size() == 0) {
            String info = "No portlet modes found in Supports block.";
            LOG.trace(info);
         }
         List<WindowStateType> wslist = st.getWindowState();
         if (wslist.size() == 0) {
            String info = "No window states found in Supports block.";
            LOG.trace(info);
         }

         // set up Supports, discarding MIME type parameters & blanks
         String mimetype = mtt.getValue().replaceAll("([^;]*).*", "$1").replaceAll(" ", "");
         Supports sup = new SupportsImpl(mimetype);
         for (PortletModeType item : pmlist) {
            sup.addPortletMode(item.getValue());
         }
         for (WindowStateType item : wslist) {
            sup.addWindowState(item.getValue());
         }

         // add to model
         newSupps.add(sup);

      }
      return newSupps;
   }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



