/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ @Override public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }
/** * Returns the value of the <code>content-type</code> header field. * * @return the content type of the resource referenced by this * <code>ResponseIncludeWrapper</code>, or <code>null</code> if not known. */ public String getContentType() { if (contentType == null) { String url = request.getRequestURI(); String mime = context.getMimeType(url); if (mime != null) { setContentType(mime); } else { // return a safe value setContentType("application/x-octet-stream"); } } return contentType; }