SAP ABAP Class CL_GRFN_DOWNLOADER (Alternative Downloader)
Hierarchy
GRCFND_A (Software Component) GRC Foundation ABAP
   GRC (Application Component) Governance, Risk and Compliance
     GRFN_DOCUMENTS (Package) Documents
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Interface implementation (CLASS c. INTERFACES i_ref)  IF_HTTP_EXTENSION HTTP Framework (iHTTP) HTTP Request Handler 20080408
Properties
Class CL_GRFN_DOWNLOADER  
Short Description Alternative Downloader    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class GRFND    
Program status     
Category 0   
Package GRFN_DOCUMENTS   Documents 
Created 20080408   SAP 
Last change 20141106    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
2 GRFND Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
3 SKWFC Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
# Interface Abstract Final Description Created on
1 IF_HTTP_EXTENSION HTTP Framework (iHTTP) HTTP Request Handler 20080408
Friends
Class CL_GRFN_DOWNLOADER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_APPL_OBJ_OBJID_PARAM_NAME Constant Public Type reference (TYPE) STRING 'object-id' Parameter Name 20080408
2 C_APPL_OBJ_OBJTYPE_PARAM_NAME Constant Public Type reference (TYPE) STRING 'object-type' Parameter Name 20080408
3 C_APPL_OBJ_TASKID_PARAM_NAME Constant Public Type reference (TYPE) STRING 'task-id' Parameter Name 20080408
4 C_COMPRESSION_DEFAULT_LEVEL Constant Public Type reference (TYPE) I 6 Default Own Compression Level, Basis < 640 20080408
5 C_COMPRESSION_MINIMAL_RATIO Constant Public Type reference (TYPE) I 80 Minimal Required Ratio (in %) for Own Compression 20080408
6 C_CONT_DISP_ATTACH_PARAM_NAME Constant Public Type reference (TYPE) STRING 'attachment-disposition' Parameter Name 20080408
7 C_DOC_CLASS_PARAM_NAME Constant Public Type reference (TYPE) STRING 'docClass' Parameter Name 20080408
8 C_DOC_COMPONENT_PARAM_NAME Constant Public Type reference (TYPE) STRING 'compId' Parameter Name 20080408
9 C_DOC_GUID_PARAM_NAME Constant Public Type reference (TYPE) STRING 'docId' Parameter Name 20080408
10 C_DOC_TICKET_PARAM_NAME Constant Public Type reference (TYPE) STRING 'auth-ticket' Parameter Name 20080408
11 C_FEXTENSION_VARIABLE_NAME Constant Public Type reference (TYPE) STRING ':&ext' Variable Name for File Extension 20080408
12 C_FNAME_VARIABLE_NAME Constant Public Type reference (TYPE) STRING ':&name' Variable Name for File Name 20080408
13 C_MAX_TIMESTAMP Constant Public Type reference (TYPE) TIMESTAMP '99991231235959' Maximum Timestamp 20080408
14 C_MIN_TIMESTAMP Constant Public Type reference (TYPE) TIMESTAMP '00000101000000' Minimum Timestamp 20080408
15 C_TICKET_ANY_USER Constant Public Type reference (TYPE) SY-UNAME '*' Value Representing Any User 20080408
16 C_TICKET_DEFAULT_VALIDITY Constant Public Type reference (TYPE) INT4 7200 Default Validity of Ticket in Seconds 20080408
17 C_TICKET_RETRIES Constant Public Type reference (TYPE) INT4 10 # of Retries to Get Ticket 20080408
18 C_TICKET_REUSE_UPDATE_STEP Constant Public Type reference (TYPE) INT4 600 DB Update Rate of Reused Tickets in Seconds 20080408
19 C_TICKET_WAIT_TIME Constant Public Type reference (TYPE) INT4 10 Wait Time If Ticket Is Currently Locked 20080408
20 DOWNLOAD_TICKET_LOCKED Instance attribute Private Type reference (TYPE) ABAP_BOOL 20080408
21 REQUEST Instance attribute Private Object reference (TYPE REF TO) IF_HTTP_REQUEST HTTP Framework (iHTTP) HTTP Request 20080408
22 RESPONSE Instance attribute Private Object reference (TYPE REF TO) IF_HTTP_RESPONSE HTTP Framework (iHTTP) HTTP Response 20080408
23 _COMPRESSION_OWN Instance attribute Private Type reference (TYPE) ABAP_BOOL ABAP_FALSE Use Own Compression Instead of Automat. Response Compression 20080408
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_DOWNLOAD_TICKET Instance method Private Method Checks validity download ticket 20080408
2 CREATE_DOWNLOAD_TICKET Static method Public Method Stores download ticket for document to ticket table 20080408
3 DEQUEUE_TICKET Static method Public Method 20080408
4 ENQUEUE_TICKET Static method Public Method 20080408
5 GENERATE_DOCUMENT_DOWNLOAD_URL Static method Public Method Generates URL for downloadinmg specified document 20080408
6 GET_DOWNLOADER_CONFIGURATION Static method Public Method Returns Customized Configuration for Given Document Class 20080408
7 GET_DOWNLOADER_URL Static method Public Method 20080408
8 GET_REQUEST_PARAMETER Instance method Private Method Retrieves paramater value from current request 20080408
9 MIX_ASTERIKS_FILENAME Static method Public Method 20080408
10 RELEASE_DOWNLOAD_TICKET Instance method Private Method Checks validity download ticket 20080408
11 WRITE_ERROR_TO_APPL_LOG Static method Private Method 20080408
12 _FIND_EXISTING_TICKET Static method Private Method Stores download ticket for document to ticket table 20080408
13 _GET_DOCUMENT_CONTENT Instance method Private Method 20080408
14 _GET_X_FIELDS_VALUES Instance method Private Method 20080408
15 _PARSE_REQUEST_PARAMS Instance method Private Method 20080408
16 _SEND_RESPONSE Instance method Private Method 20080408
17 _WRITE_ERROR_HTML Instance method Private Method Writes HTML Response Containing Error Message Specified 20080408
Events
Class CL_GRFN_DOWNLOADER has no event.
Types
Class CL_GRFN_DOWNLOADER has no local type.
Method Signatures

Method CHECK_DOWNLOAD_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_DOCUMENT_TICKET Value transfer Type reference (TYPE) GRFN_DOC_TICKETS Permission to Download the Document 20080408
2 Exporting ES_KPRO_DOCUMENT Value transfer Type reference (TYPE) SKWF_IO Indicator (X or Blank) 20080408
3 Importing IS_APPL_OBJ_KEY Call by reference Type reference (TYPE) GRFND_APPLICATION_OBJECT_KEY 20080408
4 Importing I_TICKET_GUID Call by reference Type reference (TYPE) GRFN_DOC_TICKETS-TICKET_GUID Permission to Download the Document 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method CREATE_DOWNLOAD_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TICKET Call by reference Type reference (TYPE) GRFN_DOC_TICKETS Permission to Download the Document 20080408
2 Importing IS_PHIO Call by reference Type reference (TYPE) SKWF_IO KW Framework: Object Key 20080408
3 Importing I_GENERATE_DEFAULTS Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Fill not specified properties with default values 20080408
4 Importing I_PREFER_VALIDITY_THEN_COUNTER Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method DEQUEUE_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_COLLECT Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080408
2 Importing I_TICKET_GUID Call by reference Type reference (TYPE) GRFN_DOC_TICKETS-TICKET_GUID GUID in 'CHAR' Format in Upper Case 20080408

Method DEQUEUE_TICKET on class CL_GRFN_DOWNLOADER has no exception.

Method ENQUEUE_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_COLLECT Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080408
2 Importing I_TICKET_GUID Call by reference Type reference (TYPE) GRFN_DOC_TICKETS-TICKET_GUID GUID in 'CHAR' Format in Upper Case 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method GENERATE_DOCUMENT_DOWNLOAD_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_APPL_OBJ_KEY Call by reference Type reference (TYPE) GRFND_APPLICATION_OBJECT_KEY MIC Application Object Key 20080408
2 Importing IS_PHIO_KEY Call by reference Type reference (TYPE) SKWF_IO KW Framework: Object Key 20080408
3 Importing I_COMPONENT_ID Call by reference Type reference (TYPE) SDOK_FILNM Relative Storage Location of Physical Document 20080408
4 Importing I_CONT_DISP_AS_ATTACHMENT Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE Use 'Attachment' Instead of 'Inline' in Content Disposition 20080408
5 Importing I_USE_RELATIVE_URL Value transfer Type reference (TYPE) ABAP_BOOL 20080408
6 Importing I_WITH_CLIENT Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20080408
7 Importing I_WITH_LANGUAGE Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20080408
8 Returning R_URL Value transfer Type reference (TYPE) STRING 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method GET_DOWNLOADER_CONFIGURATION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ONLY_IF_ACTIVE Value transfer Type reference (TYPE) ABAP_BOOL ABAP_TRUE Ignore If Configuration Is Disabled 20080408
2 Importing I_PHIO_CLASS Call by reference Type reference (TYPE) SKWF_IO-CLASS Document Class 20080408
3 Returning RS_DOWNLOAD_CFG Value transfer Type reference (TYPE) GRFNDOCDOWNLCFG Alternate MIC Downloader Configuration 20080408

Method GET_DOWNLOADER_CONFIGURATION on class CL_GRFN_DOWNLOADER has no exception.

Method GET_DOWNLOADER_URL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_APPLNAME Call by reference Type reference (TYPE) O2PAGKEY-APPLNAME Name of BSP Application 20080408
2 Importing I_WITH_CLIENT Value transfer Type reference (TYPE) SEU_BOOL ABAP_TRUE Boolean 20080408
3 Returning R_URL Value transfer Type reference (TYPE) STRING 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method GET_REQUEST_PARAMETER Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NAME Call by reference Type reference (TYPE) STRING 20080408
2 Returning R_VALUE Value transfer Type reference (TYPE) STRING 20080408

Method GET_REQUEST_PARAMETER on class CL_GRFN_DOWNLOADER has no exception.

Method MIX_ASTERIKS_FILENAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ASTERIKS_PATTERN Call by reference Type reference (TYPE) STRING 20080408
2 Importing I_ORIGINAL_FILE_NAME Call by reference Type reference (TYPE) STRING 20080408
3 Returning R_NEW_FILENAME Value transfer Type reference (TYPE) STRING 20080408

Method MIX_ASTERIKS_FILENAME on class CL_GRFN_DOWNLOADER has no exception.

Method RELEASE_DOWNLOAD_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_COUNTER_INCREMENT Value transfer Type reference (TYPE) I 1 20080408
2 Importing I_TICKET_GUID Call by reference Type reference (TYPE) GRFN_DOC_TICKETS-TICKET_GUID Permission to Download the Document 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method WRITE_ERROR_TO_APPL_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_DOC_EX Call by reference Object reference (TYPE REF TO) CX_GRFN_DOCUMENTS Document Subsystem Exception 20080408
2 Importing IS_RESPONSE_DATA Call by reference Type reference (TYPE) YS_RESPONSE_DATA 20080408

Method WRITE_ERROR_TO_APPL_LOG on class CL_GRFN_DOWNLOADER has no exception.

Method _FIND_EXISTING_TICKET Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TICKET Call by reference Type reference (TYPE) GRFN_DOC_TICKETS Permission to Download the Document 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method _GET_DOCUMENT_CONTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CONTENT Call by reference Type reference (TYPE) GRFND_T_KPRO_PHIO_CONTENT 20080408
2 Exporting ET_PROPERTIES Call by reference Type reference (TYPE) SDOKPROPTYS SDOK: List of Pairs of Name and Value 20080408
3 Importing IS_RESPONSE_DATA Call by reference Type reference (TYPE) YS_RESPONSE_DATA 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method _GET_X_FIELDS_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_CONTENT Call by reference Type reference (TYPE) GRFND_S_KPRO_PHIO_CONTENT 20080408
2 Importing IT_PROPERTIES Call by reference Type reference (TYPE) SDOKPROPTYS SDOK: List of Pairs of Name and Value 20080408
3 Returning RS_HTTP_X_FIELDS Value transfer Type reference (TYPE) YS_HTTP_HEADER_X_FIELDS 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method _PARSE_REQUEST_PARAMS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RS_RESPONSE_INFO Value transfer Type reference (TYPE) YS_RESPONSE_DATA 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method _SEND_RESPONSE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_RESPONSE_DATA Call by reference Type reference (TYPE) YS_RESPONSE_DATA 20080408
2 Importing IT_CONTENT Call by reference Type reference (TYPE) GRFND_T_KPRO_PHIO_CONTENT 20080408
3 Importing IT_PROPERTIES Call by reference Type reference (TYPE) SDOKPROPTYS SDOK: List of Pairs of Name and Value 20080408
4 Importing I_SEND_X_FIELDS Value transfer Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20080408
# Exception Resumable Description Created on
1 CX_GRFN_DOCUMENTS 20080408

Method _WRITE_ERROR_HTML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_MSG_STR Call by reference Type reference (TYPE) STRING 20080408
2 Importing I_MSG_STR_LONG Call by reference Type reference (TYPE) STRING 20080408

Method _WRITE_ERROR_HTML on class CL_GRFN_DOWNLOADER has no exception.
History
Last changed by/on SAP  20141106 
SAP Release Created in 300