OVERVIEW   INDEX   DEPRECATED   HELP   CORRESPONDENCES  


Module Parameters   Data Types   Component Types   Port Types   Constants   Templates   Signatures   Functions   Altsteps   Test Cases  

Module HTTP_TemplatesAndFunctions


Import Declarations:

Groups:

Data Types Summary
HTTP_AuthenticationResult_Type
Constants Summary
tsc_HTTP_Version_1_1
tsc_Simservs_ContentType
C_6_1_1
Templates Summary
cs_TLSInfo_PSK
cs_HttpCtlReq
cr_HttpCtlCnf
cr_HttpRequestLine
cr_HttpRequest
cr_HttpRequest_a
cr_HttpDataInd
cs_HttpStatusLine
cs_HttpStatusLine_200
cs_HttpStatusLine_401
cs_HttpResponse
cs_HttpResponse_a
cs_HttpResponse_200
cs_HttpResponse_200_a
cs_HttpResponse_401
cs_HttpDataReq
cr_HttpGetRequestLine
Functions Summary
fl_ContentType_TX
f_HTTP_Configure
f_HTTP_ReceiveRequest
f_HTTP_SendResponse
fl_GAA_AuthenticationInit
fl_ComputeGAAPsk
fl_HTTP_CommonAuthenticationProcedure
f_HTTP_Authentication
f_C_6_1_1
f_TC_HTTP_1_2_con_001
f_TC_HTTP_1_2_con_004

Details

HTTP_AuthenticationResult_Type
type union HTTP_AuthenticationResult_Type {
charstring Error,
HttpRequest InitialRequest,
Null_Type NoError
  }

tsc_HTTP_Version_1_1
const charstring tsc_HTTP_Version_1_1 := "HTTP/1.1"

tsc_Simservs_ContentType
const charstring tsc_Simservs_ContentType := "application/vnd.etsi.simservs+xml"

C_6_1_1
const charstring C_6_1_1 := "C.6.1.1"

cs_TLSInfo_PSK
template (value) TLSInfo cs_TLSInfo_PSK(template (omit) octetstring p_Psk := omit,
                                  template (omit) TLS_CIPHER_Type p_CipherSuite := psk_3DES_EDE_CBC_SHA) :=
  {
tlsType := pskTLS,
psk := p_Psk,
cipherSuite := p_CipherSuite
  };

Returns: TLSInfo -

Parameters:
cs_HttpCtlReq
template (value) HttpCtlReq cs_HttpCtlReq(template (omit) charstring p_ServerIPAddr,
                                    template (omit) HttpAuthenticationMechanism p_HttpAuthenticationMechanism,
                                    template (omit) TLSInfo p_TLSInfo := omit) :=
  {
serverIPAddr := p_ServerIPAddr,
authenticationMechanism := p_HttpAuthenticationMechanism,
tlsInfo := p_TLSInfo
  };

Returns: HttpCtlReq -

Parameters:
cr_HttpCtlCnf
template (present) HttpCtlCnf cr_HttpCtlCnf := { status  := success };

cr_HttpRequestLine
template (present) HttpRequestLine cr_HttpRequestLine(template (present) charstring p_Uri := ?) :=
  {
method := ("GET", "PUT", "DELETE"),
uri := p_Uri, 
version := tsc_HTTP_Version_1_1
  };

Returns: HttpRequestLine -

Parameters:
cr_HttpRequest
template (present) HttpRequest cr_HttpRequest(template (present) HttpRequestLine p_HttpRequestLine := cr_HttpRequestLine,    
                                        template Authorization p_Authorization := *)  :=
  {
requestLine := p_HttpRequestLine, 
authorization := p_Authorization,
contentType := *,
x3GPPIntendetIdentity := *,
messageBody := *
  };

Returns: HttpRequest -

Parameters:
cr_HttpRequest_a
template (present) HttpRequest cr_HttpRequest_a(template (present) HttpRequestLine p_HttpRequestLine := cr_HttpRequestLine,
                                                template (present) charstring p_cookie,
                                                template Authorization p_Authorization := *)  :=
  {
    requestLine := p_HttpRequestLine,
    cookie := p_cookie,
    authorization := p_Authorization,
    contentType := *,
    x3GPPIntendetIdentity := *,
    messageBody := *
  };

Returns: HttpRequest -

Parameters:
cr_HttpDataInd
template (present) HttpDataInd cr_HttpDataInd(template (present) HttpRequest p_HttpRequest) := { httpRequest := p_HttpRequest };

Returns: HttpDataInd -

Parameters:
cs_HttpStatusLine
template (value) HttpStatusLine cs_HttpStatusLine(integer p_Code,
                                            charstring p_ReasonPhrase) :=
  {
version := tsc_HTTP_Version_1_1,
code := p_Code,
reasonPhrase := p_ReasonPhrase
  };

Returns: HttpStatusLine -

Parameters:
cs_HttpStatusLine_200
template (value) HttpStatusLine cs_HttpStatusLine_200 := cs_HttpStatusLine(200, "OK");

cs_HttpStatusLine_401
template (value) HttpStatusLine cs_HttpStatusLine_401 := cs_HttpStatusLine(401, "Unauthorized");

cs_HttpResponse
template (value) HttpResponse cs_HttpResponse(template (value) HttpStatusLine p_HttpStatusLine,
                                        template (omit)  WwwAuthenticate p_WwwAuthenticate := omit,
                                        template (omit)  AuthenticationInfo p_AuthenticationInfo := omit,
                                        template (omit)  Expires p_Expires := omit,
                                        template (omit)  charstring p_MessageBody := omit) :=
  {
statusLine := p_HttpStatusLine,
wwwauthenticate := p_WwwAuthenticate,
authenticationInfo := p_AuthenticationInfo,
expires := p_Expires,
contentType := fl_ContentType_TX(p_MessageBody),
messageBody := p_MessageBody
  };

Returns: HttpResponse -

Parameters:
cs_HttpResponse_a
template (value) HttpResponse cs_HttpResponse_a(template (value) HttpStatusLine p_HttpStatusLine,
                                                    template (value) charstring p_cookie,
                                          template (omit)  WwwAuthenticate p_WwwAuthenticate := omit,
                                          template (omit)  AuthenticationInfo p_AuthenticationInfo := omit,
                                          template (omit)  Expires p_Expires := omit,
                                          template (omit)  charstring p_MessageBody := omit) :=
{
  statusLine := p_HttpStatusLine,
  cookie := p_cookie, 
  wwwauthenticate := p_WwwAuthenticate,
  authenticationInfo := p_AuthenticationInfo,
  expires := p_Expires,
  contentType := fl_ContentType_TX(p_MessageBody),
  messageBody := p_MessageBody
};

Returns: HttpResponse -

Parameters:
cs_HttpResponse_200
template (value) HttpResponse cs_HttpResponse_200(template (omit) charstring p_MessageBody := omit) := cs_HttpResponse(cs_HttpStatusLine_200, -, -, -, p_MessageBody);

Returns: HttpResponse -

Parameters:
cs_HttpResponse_200_a
template (value) HttpResponse cs_HttpResponse_200_a(template (value) charstring p_cookie, template (omit) charstring p_MessageBody := omit) := cs_HttpResponse_a(cs_HttpStatusLine_200, p_cookie,  -, -, -, p_MessageBody);

Returns: HttpResponse -

Parameters:
cs_HttpResponse_401
template (value) HttpResponse cs_HttpResponse_401(template (omit) WwwAuthenticate p_Authorization) := cs_HttpResponse(cs_HttpStatusLine_401, p_Authorization);

Returns: HttpResponse -

Parameters:
cs_HttpDataReq
template (value) HttpDataReq cs_HttpDataReq(template (value) HttpResponse p_HttpResponse) := { httpResponse := p_HttpResponse };

Returns: HttpDataReq -

Parameters:
cr_HttpGetRequestLine
template (present) HttpRequestLine cr_HttpGetRequestLine(template (present) charstring p_Uri := ?) 
  modifies cr_HttpRequestLine := 
  {
method := "GET"
  };

Declared in group g_C_6_Autoconfiguration_Procedures

Returns: HttpRequestLine -

Parameters:
fl_ContentType_TX
function fl_ContentType_TX(template (omit) charstring p_MessageBody) return template (omit) ContentType
  

Returns: ContentType -

Parameters:
f_HTTP_Configure
function f_HTTP_Configure(HTTP_CTRL_PORT p_HttpCtrl,
                    template (omit) HttpAuthenticationMechanism p_AuthMech := omit,
                    template (omit) IP_Socket_Type p_XcapServerAddrAndPort := omit,
                    template (omit) IP_Socket_Type p_BsfServerAddrAndPort := omit,
                    template (omit) IP_DrbInfo_Type p_DrbRoutingInfo := omit,
                    template (omit) TLSInfo p_TLSInfo := omit)
  

Returns: void -

Parameters:
f_HTTP_ReceiveRequest
function f_HTTP_ReceiveRequest(HTTP_DATA_PORT p_Port,
                         timer p_Watchdog,
                         float p_InactivityDuration := 9999.0,
                         template (present) HttpRequest p_HttpRequest := cr_HttpRequest) return template (omit) HttpRequest
  

Returns: HttpRequest -

Parameters:
f_HTTP_SendResponse
function f_HTTP_SendResponse(HTTP_DATA_PORT p_Port,
                       template (value) HttpResponse p_HttpResponse)
  

Returns: void -

Parameters:
fl_GAA_AuthenticationInit
function fl_GAA_AuthenticationInit(Common_AuthenticationParams_Type p_AuthenticationParams) return Common_AuthenticationParams_Type
  

Returns: Common_AuthenticationParams_Type -

Parameters:
fl_ComputeGAAPsk
function fl_ComputeGAAPsk(Common_AuthenticationParams_Type p_AuthenticationParams) return octetstring
  

Returns: octetstring -

Parameters:
fl_HTTP_CommonAuthenticationProcedure
function fl_HTTP_CommonAuthenticationProcedure(HTTP_DATA_PORT p_HttpData,
                                         timer p_Watchdog,
                                         Common_AuthenticationParams_Type p_AuthenticationParams,
                                         charstring p_HomeDomainName,
                                         charstring p_PrivateUserId) return HTTP_AuthenticationResult_Type
  

Returns: HTTP_AuthenticationResult_Type -

Parameters:
f_HTTP_Authentication
function f_HTTP_Authentication(HTTP_CTRL_PORT p_HttpCtrl,
                         HTTP_DATA_PORT p_HttpData,
                         timer p_Watchdog,
                         HttpAuthenticationMechanism p_HttpAuthenticationMechanism,
                         Common_AuthenticationParams_Type p_AuthenticationParams,
                         charstring p_HomeDomainName,
                         charstring p_Private_UserId) return HTTP_AuthenticationResult_Type
  

Returns: HTTP_AuthenticationResult_Type -

Parameters:
f_C_6_1_1
function f_C_6_1_1() runs on HTTP_PTC 

Declared in group g_C_6_Autoconfiguration_Procedures

Runs On: HTTP_PTC

Returns: void -

f_TC_HTTP_1_2_con_001
function f_TC_HTTP_1_2_con_001()runs on HTTP_PTC

Declared in group g_C_6_Autoconfiguration_Procedures

Runs On: HTTP_PTC

Returns: void -

f_TC_HTTP_1_2_con_004
function f_TC_HTTP_1_2_con_004()runs on HTTP_PTC

Declared in group g_C_6_Autoconfiguration_Procedures

Runs On: HTTP_PTC

Returns: void -