OVERVIEW INDEX DEPRECATED HELP CORRESPONDENCES | provided by TTworkbench

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

# Group ResponseTemplates

Declared in module SUPL_HTTP_Templates

Templates Summary
basicResponse |
digestResponse |
successResponse |

## Details

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 -

© Copyright Testing Technologies IST GmbH 2012