public final class ServletUrl extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ANNOTATIONS
Annotations servlet url part.
|
static String |
BASE_URL
Init parameter for Viewer baseURL.
|
static String |
CLIENT_LOCALE
Client locale attribute.
|
static String |
CONTENT
Content servlet url part.
|
static String |
CONTENT_LIST
Content list session attribute.
|
static String |
DDC_NAME_ATTR
DDC name attribute.
|
static String |
DOC_ELEMENT_ATTR
Name for document element attribute used in streaming-servlet request.
|
static String |
DOWNLOAD_MODE
Download attribute.
|
static String |
EDIT_MODE
Edit mode attribute.
|
static String |
FILENAME_ATTR
Filename attribute.
|
static String |
FILENAME_ENCODING
Charset used to encode the filename.
|
static String |
JADICEANNO
Annotations servlet url part.
|
static String |
JADICESEARCH
Search servlet url part.
|
static String |
MASHUP
Mashup-servlet.
|
static String |
OBJ_ID_ATTR
Name for object id (sysrowid) attribute used in streaming-servlet request.
|
static String |
PDFCONTENT
PDF content Servlet URL part.
|
static String |
REV_CURRENT_REVISION
currentRevision.
|
static String |
REV_ID_ATTR
Name for revision id (hdoc) attribute used in streaming-servlet request.
|
static String |
SAP_NOTES
SAP-Notes retrieval- and storage-servlet.
|
static String |
UPLOAD_ANNOTATIONS
Upload-Annotations servlet url part.
|
static String |
VIEW_CONTENT
View-content servlet url part.
|
static String |
VIEW_TEMPORARY_CONTENT
View-temporary-content servlet url part.
|
static String |
VIEWER_CONTROL
Viewer-Control-Servlet URL part.
|
static String |
VIEWER_ID
Popup-id parameter.
|
static String |
ZIP
ZIP servlet url part.
|
Modifier and Type | Method and Description |
---|---|
static String |
constructDocumentUrl(String revisionId,
boolean currentRevision,
int element,
String filename,
boolean download,
javax.servlet.http.HttpServletRequest request)
Deprecated.
download parameter will be removed and set to true in version 8.1.
Use
constructDocumentUrl(String, boolean, int, String, HttpServletRequest) instead. |
static String |
constructDocumentUrl(String revisionId,
boolean currentRevision,
int element,
String filename,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve the document with the specified document id.
|
static String |
constructGetPdfUrl(javax.servlet.http.HttpServletRequest request,
String objectId,
String revisionId,
String ddcName,
String filename,
boolean currentRevision)
Constructs the URL for a PDF document.
|
static String |
constructGetPdfUrl(javax.servlet.http.HttpServletRequest request,
String objectId,
String revisionId,
String ddcName,
String filename,
boolean currentRevision,
boolean download)
Deprecated.
download parameter will be removed and set to true in version 8.1.
Use
constructGetPdfUrl(HttpServletRequest, String, String, String, String, boolean) instead. |
static String |
constructMashupUrl(String filename,
javax.servlet.http.HttpServletRequest request)
Constructs the url that is required to access the mashup-servlet.
|
static String |
constructSapNotesUrl(javax.servlet.http.HttpServletRequest request)
Constructs the URL that can be used to get or post sap notes from or to the SAPViewerNotesServlet.
|
static String |
constructSearchJadiceUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL needed to fulltext search.
|
static String |
constructTimelineUrl(DocumentId documentId,
javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve revision infos for timeline components.
|
static String |
constructViewAnnotationsUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL needed to view annotations.
|
static String |
constructViewDocumentUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL needed to view a document.
|
static String |
constructViewerControlUrl(javax.servlet.http.HttpServletRequest request)
Constructs the URL that can be used to contact the ViewerControlServlet.
|
static String |
constructViewerControlUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL that can be used to contact the ViewerControlServlet.
|
static String |
constructViewJadiceAnnoUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL needed to view annotations.
|
static String |
constructViewTemporaryDocumentUrl(javax.servlet.http.HttpServletRequest request,
String viewerId)
Constructs the URL needed to view a temporary document.
|
static String |
constructZipUrl(javax.servlet.http.HttpServletRequest request)
Constructs the url to retrieve document content as zip file.
|
static String |
getBaseUrl(javax.servlet.http.HttpServletRequest request)
Returns the base url of the current request without the session id.
|
static String |
getBaseUrl(javax.servlet.http.HttpServletRequest request,
String servletUrlPart)
Returns the base url of the current request.
|
static String |
getBaseUrl(javax.servlet.ServletContext servletContext)
Returns the base URL of the webclient.
|
static boolean |
urlSessionTrackingUsed(javax.servlet.http.HttpSession session)
Checks if sessions are tracked by URL-rewriting (adding ;jsessionid).
|
public static final String FILENAME_ENCODING
public static final String ANNOTATIONS
public static final String JADICEANNO
public static final String JADICESEARCH
public static final String UPLOAD_ANNOTATIONS
public static final String ZIP
public static final String CONTENT
public static final String VIEW_CONTENT
public static final String VIEW_TEMPORARY_CONTENT
public static final String VIEWER_CONTROL
public static final String PDFCONTENT
public static final String SAP_NOTES
public static final String MASHUP
public static final String OBJ_ID_ATTR
public static final String REV_ID_ATTR
public static final String REV_CURRENT_REVISION
public static final String DOC_ELEMENT_ATTR
public static final String FILENAME_ATTR
public static final String DDC_NAME_ATTR
public static final String EDIT_MODE
public static final String CLIENT_LOCALE
public static final String DOWNLOAD_MODE
public static final String CONTENT_LIST
public static final String BASE_URL
public static final String VIEWER_ID
@Deprecated public static String constructDocumentUrl(String revisionId, boolean currentRevision, int element, String filename, boolean download, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
constructDocumentUrl(String, boolean, int, String, HttpServletRequest)
instead.revisionId
- the id of the document to retrievecurrentRevision
- currentRevisionelement
- document elementfilename
- filename of the elementdownload
- set to true to force the browser to open a download box request
- requestUnsupportedEncodingException
- unsupported encodingpublic static String constructDocumentUrl(String revisionId, boolean currentRevision, int element, String filename, javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
Download the document as attachment. Force the browser to open a download box
revisionId
- the id of the document to retrievecurrentRevision
- currentRevisionelement
- document elementfilename
- filename of the elementrequest
- requestUnsupportedEncodingException
- unsupported encodingpublic static String constructMashupUrl(String filename, javax.servlet.http.HttpServletRequest request)
filename
- Filenamerequest
- current servlet requestpublic static String constructZipUrl(javax.servlet.http.HttpServletRequest request)
CONTENT_LIST
. (The attribute is
removed by the servlet after the ZIP was constructed).request
- requestpublic static String constructTimelineUrl(DocumentId documentId, javax.servlet.http.HttpServletRequest request)
documentId
- document idrequest
- requestpublic static String getBaseUrl(javax.servlet.http.HttpServletRequest request, String servletUrlPart)
request
- requestservletUrlPart
- the part of the url that identifies the servlet (with leading /)public static String getBaseUrl(javax.servlet.http.HttpServletRequest request)
request
- requestpublic static String constructViewerControlUrl(javax.servlet.http.HttpServletRequest request)
request
- servlet requestpublic static String constructViewerControlUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- ID of the viewerpublic static String constructSapNotesUrl(javax.servlet.http.HttpServletRequest request)
request
- servlet requestpublic static String constructViewDocumentUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- viewer IDpublic static String constructViewTemporaryDocumentUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- viewer IDpublic static String constructViewAnnotationsUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- viewer IDpublic static String constructViewJadiceAnnoUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- viewer ID@Deprecated public static String constructGetPdfUrl(javax.servlet.http.HttpServletRequest request, String objectId, String revisionId, String ddcName, String filename, boolean currentRevision, boolean download)
constructGetPdfUrl(HttpServletRequest, String, String, String, String, boolean)
instead.request
- the http request to set the given parametersobjectId
- the sysrowid attributerevisionId
- name for revision id (hdoc) attributeddcName
- the ddc namefilename
- attributecurrentRevision
- if true, current revision is useddownload
- if true, the references PDF will get downloaded and not displayed inlinepublic static String constructGetPdfUrl(javax.servlet.http.HttpServletRequest request, String objectId, String revisionId, String ddcName, String filename, boolean currentRevision)
Download the document as attachment. Force the browser to open a download box.
request
- the http request to set the given parametersobjectId
- the sysrowid attributerevisionId
- name for revision id (hdoc) attributeddcName
- the ddc namefilename
- attributecurrentRevision
- if true, current revision is usedpublic static String constructSearchJadiceUrl(javax.servlet.http.HttpServletRequest request, String viewerId)
request
- servlet requestviewerId
- viewer IDpublic static boolean urlSessionTrackingUsed(javax.servlet.http.HttpSession session)
session
- current sessionpublic static String getBaseUrl(javax.servlet.ServletContext servletContext)
servletContext
- the context of the current servletCopyright © 2021 Hyland Software Germany GmbH. All rights reserved.