All files / test/src/web zcl_abapgit_web_sicf.clas.abap

62.5% Statements 35/56
100% Branches 0/0
0% Functions 0/4
62.5% Lines 35/56

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 571x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 1x     1x 1x     1x 1x                               1x 1x  
CLASS zcl_abapgit_web_sicf DEFINITION PUBLIC FINAL CREATE PUBLIC.
  PUBLIC SECTION.
    INTERFACES if_http_extension.
    INTERFACES zif_abapgit_web_request.
    INTERFACES zif_abapgit_web_response.
  PROTECTED SECTION.
  PRIVATE SECTION.
    DATA mi_server TYPE REF TO if_http_server.
ENDCLASS.
 
 
 
CLASS zcl_abapgit_web_sicf IMPLEMENTATION.
 
  METHOD zif_abapgit_web_request~get_header_field.
    rv_value = mi_server->request->get_header_field( iv_name ).
  ENDMETHOD.
 
  METHOD zif_abapgit_web_request~get_method.
    rv_method = mi_server->request->get_method( ).
  ENDMETHOD.
 
  METHOD zif_abapgit_web_request~get_cdata.
    rv_data = mi_server->request->get_cdata( ).
  ENDMETHOD.
 
  METHOD zif_abapgit_web_response~set_content_type.
    mi_server->response->set_content_type( iv_type ).
  ENDMETHOD.
 
  METHOD zif_abapgit_web_response~set_cdata.
    mi_server->response->set_cdata( iv_data ).
  ENDMETHOD.
 
  METHOD zif_abapgit_web_response~set_xdata.
    mi_server->response->set_data( iv_data ).
  ENDMETHOD.
 
  METHOD if_http_extension~handle_request.

    mi_server = server.

    server->set_session_stateful( ).

    TRY.
        zcl_abapgit_web=>handle(
          ii_request  = me
          ii_response = me ).
      CATCH cx_static_check.
      " todo, show error page
        ASSERT 1 = 2.
    ENDTRY.

  ENDMETHOD.
 
ENDCLASS.