OVERVIEW INDEX DEPRECATED HELP CORRESPONDENCES | provided by TTworkbench

Modulepars Data Types Component Types Port Types Constants Templates Signatures Functions Altsteps Test cases

# Module SUPL_HTTP_Templates

Import Declarations:

- SUPL_Parameters
  all
- HTTP_TypeDefinitions
  all
- SUPL_TypeDefinitions
  all
- BSF_XML_TypeDefinitions
  all

Groups:

- RequestTemplates
- ResponseTemplates
- HttpHeaderTemplates
- Functions

Templates Summary
getRequest |
initialGetRequest |
basicResponse |
digestResponse |
successResponse |
defaultServerHeader |
defaultWwwAuthenticate |
defaultAuthInfoHeaderRspauth |
defaultAuthInfoHeaderQop |

Functions Summary
getHeaderParameterValue |

## Details

getRequest

    template HttpRequest getRequest := {
        Method := "GET",
        Uri := ?,
        Version := ?,
        Host := ?,
        ContentType := *,
        Authorization := *,
        anotherHeaders := *,
        Body := *
    }

Declared in group RequestTemplates

initialGetRequest

    template HttpRequest initialGetRequest modifies getRequest := {
        Authorization := {
            Value := "Digest",
            ParameterList := {
                {Name := "response", Value := ?},
                *
            }
        }
    }

Declared in group RequestTemplates

basicResponse

    template HttpResponse basicResponse(integer p_statusCode) := {
        Version := "HTTP/1.1",
        Code := p_statusCode,
        ContentType := omit,
        anotherHeaders := {
            {Name := "Server", ListOfValue := {defaultServerHeader}}
        }
        ,
        Body := omit
    }

Declared in group ResponseTemplates
Returns: HttpResponse -
Parameters:

- p_statusCode -

digestResponse

    template HttpResponse digestResponse(charstring p_nonce) modifies basicResponse(401) := {
        anotherHeaders := {
            {Name := "Server", ListOfValue := {defaultServerHeader}},
            {Name := "WWW-Authenticate", ListOfValue := {defaultWwwAuthenticate(p_nonce)}}
        }
    }

Declared in group ResponseTemplates
Returns: HttpResponse -
Parameters:

- p_nonce -

successResponse

    template HttpResponse successResponse(charstring p_response, charstring p_expires, template BSFXML p_bsfXml) modifies basicResponse(200) := {
        ContentType := {
            Name := "Content-Type", ListOfValue := {{Value := "application/vnd.3gpp.bsf+xml", ParameterList := omit}}
        },
        anotherHeaders := {
            {Name := "Server", ListOfValue := {defaultServerHeader}},
            {Name := "Expires",    ListOfValue := {{Value := p_expires, ParameterList := omit}}},
            {Name := "Authentication-Info",    ListOfValue := {defaultAuthInfoHeaderRspauth(p_response), defaultAuthInfoHeaderQop}}
        },
        Body := {
            bsfXml := p_bsfXml
        }
    }

Declared in group ResponseTemplates
Returns: HttpResponse -
Parameters:

- p_response -
- p_expires -
- p_bsfXml -

defaultServerHeader

    template HttpHeaderValue defaultServerHeader := {
        Value := "RS ATE BSF Server/0.02",
        ParameterList := omit
    }

Declared in group HttpHeaderTemplates

defaultWwwAuthenticate

    template HttpHeaderValue defaultWwwAuthenticate(charstring p_nonce) := {
        Value := "Digest",
        ParameterList := {
            {Name := "realm", Value := """" & ixit_BSF_FQDN & """"},
            {Name := "nonce", Value := """" & p_nonce & """"},
            {Name := "algorithm", Value := "AKAv1-MD5"},
            {Name := "qop", Value := """" & "auth-int" & """"}
        }
    }

Declared in group HttpHeaderTemplates
Returns: HttpHeaderValue -
Parameters:

- p_nonce -

defaultAuthInfoHeaderRspauth

    template HttpHeaderValue defaultAuthInfoHeaderRspauth(charstring p_response) := {
        Value := "rspauth",
            ParameterList := {{ Name := p_response, Value := omit }
        }
    }

Declared in group HttpHeaderTemplates
Returns: HttpHeaderValue -
Parameters:

- p_response -

defaultAuthInfoHeaderQop

    template HttpHeaderValue defaultAuthInfoHeaderQop := {
        Value := "qop",
            ParameterList := {{ Name := "auth-int", Value := omit }
        }
    }

Declared in group HttpHeaderTemplates

getHeaderParameterValue

    function getHeaderParameterValue(in charstring p_headerParameterValue, in ListOfParameter p_list) return charstring

Declared in group Functions
Returns: charstring -
Parameters:

- p_headerParameterValue -
- p_list -

© Copyright Testing Technologies IST GmbH 2012