version 1.6, 2005/11/29 23:12:59
|
version 1.6.2.1, 2006/02/10 16:12:57
|
|
|
//%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 |
{ | { |
// Try to get the ContentLanguages out of the OperationContext |
// Try to get the ContentLanguageList out of the |
// in the base ResponseHandler. |
// OperationContext in the base ResponseHandler. |
OperationContext context = getContext(); | OperationContext context = getContext(); |
| |
ContentLanguageListContainer cntr = context.get( | ContentLanguageListContainer cntr = context.get( |
|
|
catch (const Exception &) | catch (const Exception &) |
{ | { |
// The content language container must not exist. | // The content language container must not exist. |
// Return the empty ContentLanguages. |
// Return the empty ContentLanguageList. |
} | } |
| |
return(langs); | return(langs); |