content_redir.properties 檔配置為當使用者試圖從 Workplace XT 內開啟檔案時,會重新導向至 Workplace XT Java Server Pages (JSP) 或 Servlet,或重新導向至自訂或供應商應用程式。重新導向是根據內容 MIME 類型。本主題顯示如何自訂重新導向。下一節說明應用程式如何使用 content_redir.properties。如果要自訂重新導向,請參閱修改重新導向內容檔。
內容重新導向的概觀
# Comment the lines with MIME types to not be opened by the Image Viewer appletimage/pjpeg=/WcmJavaViewer.jsp?{QUERY_STRING}image/jpg=/WcmJavaViewer.jsp?{QUERY_STRING}image/jpeg=/WcmJavaViewer.jsp?{QUERY_STRING}image/bmp=/WcmJavaViewer.jsp?{QUERY_STRING}image/tiff=/WcmJavaViewer.jsp?{QUERY_STRING}image/gif=/WcmJavaViewer.jsp?{QUERY_STRING}application/x-cold=/WcmJavaViewer.jsp?{QUERY_STRING}application/x-visio=/redirect/customAppRedirect.jsp?vsId={VERSION_SERIES_ID}&objectStoreName={OBJECT_STORE_NAME}&id={OBJECT_ID}&objectType=document application/vnd.filenet.im-image=/WcmJavaViewer.jsp?{QUERY_STRING}application/vnd.filenet.im-cold=/WcmJavaViewer.jsp?{QUERY_STRING}application/vnd.filenet.im-form=/WcmJavaViewer.jsp?{QUERY_STRING}application/vnd.filenet.im-other=/WcmJavaViewer.jsp?{QUERY_STRING}folder=/WcmObjectBookmark.jspcustomobject=/integrationWebBasedCommand?_commandId=3010showPropertiesCommand=/integrationWebBasedCommand?_commandId=3010application/x-filenet-search=/WcmObjectBookmark.jspapplication/x-filenet-searchtemplate=/WcmObjectBookmark.jspapplication/x-filenet-workflowdefinition=/eprocess/WcmDesigner.jspapplication/x-filenet-scenariodefinition=/eprocess/WcmSimDesigner.jsp...
getContent Servlet 的預設行為
與其他設定的互動
除了 content_redir.properties 檔的設定之外,文件類型物件(包括影像在內)還有一項隱藏內容會影響重新導向行為。依預設,不會設定這個名為 "IgnoreRedirect" 的隱藏內容。您只能以程式設計方式或透過 Enterprise Manager 設定它。
對於儲存在外部程式庫中的文件,例如 Image Services,有一項稱為「併入重新導向」的外部服務網站喜好設定。依預設,這項喜好設定設為「是」。如果設為「是」,則 URL 後面將附加影像上的 IgnoreRedirect 內容設定。如需這項喜好設定的相關資訊,請參閱外部服務喜好設定。
修改重新導向內容檔
您可以修改 content_redir.properties 來自訂重新導向。例如,您可以將重新導向新增至供應商應用程式,或註銷現有的重新導向,而容許由 getContent Servlet 處理註銷 MIME 類型的物件。
如何修改重新導向內容檔