diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-01-22 10:27:00 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-01-22 10:27:00 +0000 |
commit | 619bbbd8fccf5501f5790062982dc7291e96d42b (patch) | |
tree | c044ad5c480f2b125560469d54e5b3e16a469a71 /ucb/source/ucp | |
parent | 1c8dc544b3ddad8b440ce0d8e60d9ecf00bf1f09 (diff) |
#82939# - transfer command implementation now throws a
InteractiveBadTransferURLException, if the source URL is
not supported by the target.
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r-- | ucb/source/ucp/webdav/webdavcontent.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ucb/source/ucp/webdav/webdavcontent.cxx b/ucb/source/ucp/webdav/webdavcontent.cxx index 4e037d8689ce..170c98a8e4a7 100644 --- a/ucb/source/ucp/webdav/webdavcontent.cxx +++ b/ucb/source/ucp/webdav/webdavcontent.cxx @@ -2,9 +2,9 @@ * * $RCSfile: webdavcontent.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: kso $ $Date: 2000-12-19 17:04:21 $ + * last change: $Author: kso $ $Date: 2001-01-22 11:27:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -82,6 +82,9 @@ #ifndef _COM_SUN_STAR_UCB_CONTENTINFOATTRIBUTE_HPP_ #include <com/sun/star/ucb/ContentInfoAttribute.hpp> #endif +#ifndef _COM_SUN_STAR_UCB_INTERACTIVEBADTRANSFRERURLEXCEPTION_HPP_ +#include <com/sun/star/ucb/InteractiveBadTransferURLException.hpp> +#endif #ifndef _COM_SUN_STAR_UCB_OPENCOMMANDARGUMENT2_HPP_ #include <com/sun/star/ucb/OpenCommandArgument2.hpp> #endif @@ -796,14 +799,14 @@ Any SAL_CALL Content::execute( const Command& aCommand, HTTP_URL_SCHEME ) ) && !aScheme.equalsIgnoreCase( OUString::createFromAscii( HTTPS_URL_SCHEME ) ) ) - throw CommandAbortedException(); + throw InteractiveBadTransferURLException(); #else // Check scheme // const OUString aScheme = sourceURI.GetScheme(); if ( !aScheme.equalsIgnoreCase( OUString::createFromAscii( WEBDAV_URL_SCHEME ) ) ) - throw CommandAbortedException(); + throw InteractiveBadTransferURLException(); #endif sourceURI.SetScheme (OUString::createFromAscii ("http")); targetURI.SetScheme (OUString::createFromAscii ("http")); @@ -813,7 +816,7 @@ Any SAL_CALL Content::execute( const Command& aCommand, if (sourceURI.GetHost ().getLength () && sourceURI.GetHost () != targetURI.GetHost ()) { - throw CommandAbortedException(); + throw InteractiveBadTransferURLException(); } if (!transferArgs.NewTitle.getLength ()) |