version 1.6, 2005/11/29 23:12:59
|
version 1.9, 2006/07/21 18:44:08
|
|
|
//%2005//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// EMC Corporation; VERITAS Software Corporation; The Open Group. | // EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
{ | { |
} | } |
| |
ContentLanguages SimpleResponseHandler::getLanguages(void) |
ContentLanguageList SimpleResponseHandler::getLanguages(void) |
{ | { |
Logger::put( | Logger::put( |
Logger::STANDARD_LOG, | Logger::STANDARD_LOG, |
|
|
Logger::TRACE, | Logger::TRACE, |
"SimpleResponseHandler: getLanguages()"); | "SimpleResponseHandler: getLanguages()"); |
| |
ContentLanguages langs; |
ContentLanguageList langs; |
| |
try |
// Try to get the ContentLanguageList out of the |
{ |
// OperationContext in the base ResponseHandler. |
// Try to get the ContentLanguages out of the 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 ContentLanguages. |
context.get(ContentLanguageListContainer::NAME); |
|
langs = cntr.getLanguages(); |
} | } |
| |
return(langs); |
return langs; |
} | } |
| |
void SimpleResponseHandler::send(Boolean isComplete) | void SimpleResponseHandler::send(Boolean isComplete) |