version 1.8, 2006/01/30 16:18:01
|
version 1.9, 2006/07/21 18:44:08
|
|
|
| |
ContentLanguageList langs; | ContentLanguageList langs; |
| |
try |
|
{ |
|
// Try to get the ContentLanguageList out of the | // Try to get the ContentLanguageList out of the |
// OperationContext in the base ResponseHandler. | // OperationContext in the base ResponseHandler. |
OperationContext context = getContext(); | OperationContext context = getContext(); |
| |
ContentLanguageListContainer cntr = context.get( |
if(context.contains(ContentLanguageListContainer::NAME)) |
ContentLanguageListContainer::NAME); |
|
|
|
langs = cntr.getLanguages(); |
|
} |
|
catch (const Exception &) |
|
{ | { |
// The content language container must not exist. |
ContentLanguageListContainer cntr = |
// Return the empty ContentLanguageList. |
context.get(ContentLanguageListContainer::NAME); |
|
langs = cntr.getLanguages(); |
} | } |
| |
return(langs); |
return langs; |
} | } |
| |
void SimpleResponseHandler::send(Boolean isComplete) | void SimpleResponseHandler::send(Boolean isComplete) |