![JAR search and dependency download from the Maven repository](/logo.png)
features.opensocial-reference.url.js Maven / Gradle / Ivy
Go to download
Packages all the features that shindig provides into a single jar file to allow
loading from the classpath
The newest version!
/*
* 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.
*/
/*global opensocial */
/**
* @fileoverview Representation of an url.
*/
/**
* @class
* Base interface for all URL objects.
*
* @name opensocial.Url
*/
/**
* Base interface for all url objects.
*
* @private
* @constructor
* @deprecated since 1.0 see http://opensocial-resources.googlecode.com/svn/spec/1.0/Social-Gadget.xml#rfc.section.A.51.
*/
opensocial.Url = function(opt_params) {
this.fields_ = opt_params || {};
};
/**
* @static
* @class
* All of the fields that a url has. These are the supported keys for the
* Url.getField() method.
*
* @name opensocial.Url.Field
* @deprecated since 1.0 see http://opensocial-resources.googlecode.com/svn/spec/1.0/Social-Gadget.xml#rfc.section.A.52.
*/
opensocial.Url.Field = {
/**
* The url number type or label. Examples: work, blog feed,
* website, etc Specified as a String.
*
* @member opensocial.Url.Field
*/
TYPE: 'type',
/**
* The text of the link. Specified as a String.
*
* @member opensocial.Url.Field
*/
LINK_TEXT: 'linkText',
/**
* The address the url points to. Specified as a String.
*
* @member opensocial.Url.Field
*/
ADDRESS: 'address'
};
/**
* Gets data for this URL that is associated with the specified key.
*
* @param {string} key The key to get data for;
* keys are defined in
* Url.Field
.
* @param {Object.}
* opt_params Additional
* params
* to pass to the request.
* @return {string} The data.
* @deprecated since 1.0 see http://opensocial-resources.googlecode.com/svn/spec/1.0/Social-Gadget.xml#rfc.section.A.51.1.1.
*/
opensocial.Url.prototype.getField = function(key, opt_params) {
return opensocial.Container.getField(this.fields_, key, opt_params);
};
© 2015 - 2025 Weber Informatics LLC | Privacy Policy