@Override public String getContentType() { return ((MimeResponse)response).getContentType(); }
@Override public String getContentType() { if (portletResponse instanceof MimeResponse) { return ((MimeResponse) portletResponse).getContentType(); } return null; }
@Override public String getContentType() { return mimeResponse.getContentType(); } }
@Override public String getContentType() { return mimeResponse.getContentType(); } }
public String getContentType() { return mresp.getContentType(); }
return ((MimeResponse) mPortletResponse).getContentType();
public String getContentType() { PortletResponse portletResponse = getWrapped(); if (portletResponse instanceof MimeResponse) { MimeResponse mimeResponse = (MimeResponse) portletResponse; return mimeResponse.getContentType(); } else { return null; } }
public String getContentType() { PortletResponse portletResponse = getWrapped(); if (portletResponse instanceof MimeResponse) { MimeResponse mimeResponse = (MimeResponse) portletResponse; return mimeResponse.getContentType(); } else { return null; } }
public String getContentType() { return getResponse().getContentType(); }
public String getContentType() { return getResponse().getContentType(); }
/** * @see {@link ExternalContext#getResponseContentType()} */ @Override public String getResponseContentType() { if (portletResponse instanceof MimeResponse) { MimeResponse mimeResponse = (MimeResponse) portletResponse; String responseContentType = mimeResponse.getContentType(); if (responseContentType == null) { responseContentType = portletRequest.getResponseContentType(); } return responseContentType; } else { // TCK TestPage173: getResponseContentTypeActionTest // TCK TestPage174: getResponseContentTypeEventTest throw new IllegalStateException(); } }
public static void ensureContentTypeHeader(final MimeResponse response, final String contentType) { final String responseContentType = response.getContentType(); if (!StringUtils.equalsIgnoreCaseAndWhitespace(responseContentType, contentType)) { response.setContentType(contentType); if (LOG.isDebugEnabled()) { LOG.debug("Response already contains Header Content-Type '" + responseContentType + "'. Overwriting with '" + contentType + "'"); } } }
/** * @see {@link ExternalContext#getResponseContentType()} */ @Override public String getResponseContentType() { if (portletResponse instanceof MimeResponse) { MimeResponse mimeResponse = (MimeResponse) portletResponse; String responseContentType = mimeResponse.getContentType(); if (responseContentType == null) { responseContentType = portletRequest.getResponseContentType(); } return responseContentType; } else { // TCK TestPage173: getResponseContentTypeActionTest // TCK TestPage174: getResponseContentTypeEventTest throw new IllegalStateException(); } }
if (response.getContentType() != null) { if (logger.isDebugEnabled()) { logger.debug("Portlet response content type already set to [" + response.getContentType() + "]");
if (response.getContentType() != null) { if (logger.isDebugEnabled()) { logger.debug("Portlet response content type already set to [" + response.getContentType() + "]");