diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2013-03-24 12:23:39 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2013-03-24 12:23:39 +0000 |
commit | 122e10cfd23b379b97e2d8ec002e7f0562ebd6f7 (patch) | |
tree | 93f73489cd6e3205c5838f8798b574a5aa8e0ba9 /offapi | |
parent | 80199136d0d84b51b3d0529fb313b8f20f5cf851 (diff) |
i121946 - Use enums to identify WebDAV/HTTP methods
Notes
merged as: 7165b05968ed7d6a52986382877e82e09f7150aa
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/com/sun/star/ucb/WebDAVHTTPMethod.idl | 118 | ||||
-rw-r--r-- | offapi/com/sun/star/ucb/XWebDAVCommandEnvironment.idl | 10 | ||||
-rw-r--r-- | offapi/com/sun/star/ucb/makefile.mk | 1 | ||||
-rw-r--r-- | offapi/type_reference/typelibrary_history.txt | 2 | ||||
-rw-r--r-- | offapi/type_reference/types.rdb | bin | 7497216 -> 7503360 bytes |
5 files changed, 127 insertions, 4 deletions
diff --git a/offapi/com/sun/star/ucb/WebDAVHTTPMethod.idl b/offapi/com/sun/star/ucb/WebDAVHTTPMethod.idl new file mode 100644 index 000000000000..876a4ff01120 --- /dev/null +++ b/offapi/com/sun/star/ucb/WebDAVHTTPMethod.idl @@ -0,0 +1,118 @@ +/************************************************************** + * + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + *************************************************************/ + +#ifndef __com_sun_star_ucb_WebDAVHTTPMethod_idl__ +#define __com_sun_star_ucb_WebDAVHTTPMethod_idl__ + +module com { module sun { module star { module ucb { + + +/** Standard WebDAV/HTTP methods. + + @since Apache OpenOffice 4.0 +*/ +enum WebDAVHTTPMethod +{ + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.3">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + GET, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.4">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + HEAD, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.5">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + POST, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.6">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + PUT, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.7">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + DELETE, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.8">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + TRACE, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.2">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + OPTIONS, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc2616#section-9.9">RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1</a> + */ + CONNECT, + + /** HTTP request method as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc5789">RFC 5789: PATCH Method for HTTP</a> + */ + PATCH, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.1">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + PROPFIND, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.2">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + PROPPATCH, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.3">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + MKCOL, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.8">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + COPY, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.9">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + MOVE, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.10">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + LOCK, + + /** WebDAV methods as defined in + <a target="_blank" href="http://tools.ietf.org/html/rfc4918#section-9.11">HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</a> + */ + UNLOCK + +}; + +}; }; }; }; + +#endif diff --git a/offapi/com/sun/star/ucb/XWebDAVCommandEnvironment.idl b/offapi/com/sun/star/ucb/XWebDAVCommandEnvironment.idl index 4e71a34e69f6..23fcda9d47ac 100644 --- a/offapi/com/sun/star/ucb/XWebDAVCommandEnvironment.idl +++ b/offapi/com/sun/star/ucb/XWebDAVCommandEnvironment.idl @@ -23,6 +23,7 @@ #define __com_sun_star_ucb_XWebDAVCommandEnvironment_idl__ #include <com/sun/star/ucb/XCommandEnvironment.idl> +#include <com/sun/star/ucb/WebDAVHTTPMethod.idl> #include <com/sun/star/beans/StringPair.idl> module com { module sun { module star { module ucb { @@ -30,7 +31,7 @@ module com { module sun { module star { module ucb { /** A command environment that can be used to deal with WebDAV/HTTP specific commands. */ -published interface XWebDAVCommandEnvironment : XCommandEnvironment +interface XWebDAVCommandEnvironment : XCommandEnvironment { /** This method gets called while assembling an WebDAV/HTTP request. The returned headername-headervalue pairs will be appended to @@ -40,15 +41,16 @@ published interface XWebDAVCommandEnvironment : XCommandEnvironment The request URI. @param aMethod - The WebDAV/HTTP method ("GET","PUT","MKCOL",...). + The WebDAV/HTTP method ("GET","PUT","MKCOL",...) as defined in + <type>WebDAVHTTPMethod</type>. @return A sequence of header name, header value pairs. The header names must be the plain names and contain no trailing ":". */ sequence<com::sun::star::beans::StringPair> getUserRequestHeaders( - [in] string aURI, - [in] string aMethod); + [in] string aURI, + [in] WebDAVHTTPMethod eMethod); }; }; }; }; }; diff --git a/offapi/com/sun/star/ucb/makefile.mk b/offapi/com/sun/star/ucb/makefile.mk index 36338bd73744..26c67d2a6722 100644 --- a/offapi/com/sun/star/ucb/makefile.mk +++ b/offapi/com/sun/star/ucb/makefile.mk @@ -205,6 +205,7 @@ IDLFILES=\ WebDAVContentProvider.idl\ WebDAVDocumentContent.idl\ WebDAVFolderContent.idl\ + WebDAVHTTPMethod.idl \ WelcomeDynamicResultSetStruct.idl\ XAnyCompare.idl\ XAnyCompareFactory.idl\ diff --git a/offapi/type_reference/typelibrary_history.txt b/offapi/type_reference/typelibrary_history.txt index 38c148b03157..a42bf6c505ca 100644 --- a/offapi/type_reference/typelibrary_history.txt +++ b/offapi/type_reference/typelibrary_history.txt @@ -206,3 +206,5 @@ css::ucb::XWebDAVCommandEnvironment::getUserRequestHeaders() should return a sequence of css::beans::StringPair +23/03/2013 (arielch): TaskID=121946 + css::ucb::XWebDAVCommandEnvironment: use enums to identify WebDAV/HTTP methods diff --git a/offapi/type_reference/types.rdb b/offapi/type_reference/types.rdb Binary files differindex 3eae5c6f2afb..e5669433133c 100644 --- a/offapi/type_reference/types.rdb +++ b/offapi/type_reference/types.rdb |