Added:
websites/production/commons/content/proper/commons-daemon/apidocs/script-dir/jquery-ui.min.js
==============================================================================
---
websites/production/commons/content/proper/commons-daemon/apidocs/script-dir/jquery-ui.min.js
(added)
+++
websites/production/commons/content/proper/commons-daemon/apidocs/script-dir/jquery-ui.min.js
Fri May 24 09:43:12 2024
@@ -0,0 +1,6 @@
+/*! jQuery UI - v1.13.2 - 2023-02-27
+* http://jqueryui.com
+* Includes: widget.js, position.js, keycode.js, unique-id.js,
widgets/autocomplete.js, widgets/menu.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+!function(t){"use strict";"function"==typeof
define&&define.amd?define(["jquery"],t):t(jQuery)}(function(x){"use
strict";x.ui=x.ui||{};x.ui.version="1.13.2";var
n,i=0,l=Array.prototype.hasOwnProperty,a=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(t){for(var
e,i,s=0;null!=(i=t[s]);s++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");n(t)}),x.widget=function(t,i,e){var
s,n,o,l={},a=t.split(".")[0],r=a+"-"+(t=t.split(".")[1]);return
e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[r.toLowerCase()]=function(t){return!!x.data(t,r)},x[a]=x[a]||{},s=x[a][t],n=x[a][t]=function(t,e){if(!this||!this._createWidget)return
new
n(t,e);arguments.length&&this._createWidget(t,e)},x.extend(n,s,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new
i).options=x.widget.extend({},o.options),x.each(e,function(e,s){function
n(){return i.prototype[e].apply(this,arguments)}function o(t){return
i.prototype[e].apply(this
,t)}l[e]="function"==typeof s?function(){var
t,e=this._super,i=this._superApply;return
this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}:s}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},l,{constructor:n,namespace:a,widgetName:t,widgetFullName:r}),s?(x.each(s._childConstructors,function(t,e){var
i=e.prototype;x.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete
s._childConstructors):i._childConstructors.push(n),x.widget.bridge(t,n),n},x.widget.extend=function(t){for(var
e,i,s=a.call(arguments,1),n=0,o=s.length;n<o;n++)for(e in
s[n])i=s[n][e],l.call(s[n],e)&&void
0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return
t},x.widget.bridge=function(o,e){var
l=e.prototype.widgetFullName||o;x.fn[o]=function(i){var t="string"==typeof
i,s=a.call(arguments,1),n=this;return
t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,l);retur
n"instance"===i?(n=e,!1):e?"function"!=typeof
e[i]||"_"===i.charAt(0)?x.error("no such method '"+i+"' for "+o+" widget
instance"):(t=e[i].apply(e,s))!==e&&void
0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:x.error("cannot call
methods on "+o+" prior to initialization; attempted to call method
'"+i+"'")}):n=void
0:(s.length&&(i=x.widget.extend.apply(null,[i].concat(s))),this.each(function(){var
t=x.data(this,l);t?(t.option(i||{}),t._init&&t._init()):x.data(this,l,new
e(i,this))})),n}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:functi
on(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var
i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return
this.element},option:function(t,e){var
i,s,n,o=t;if(0===arguments.length)return
x.widget.extend({},this.options);if("string"==typeof
t)if(o={},t=(i=t.split(".")).shift(),i.l
ength){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return
void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void
0===this.options[t]?null:this.options[t];o[t]=e}return
this._setOptions(o),this},_setOptions:function(t){for(var e in
t)this._setOption(e,t[e]);return
this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var
e,i,s;for(e in
t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=x(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return
this._
setOptions({disabled:!1})},disable:function(){return
this._setOptions({disabled:!0})},_classes:function(n){var o=[],l=this;function
t(t,e){for(var
i,s=0;s<t.length;s++)i=l.classesElementLookup[t[s]]||x(),i=n.add?(function(){var
i=[];n.element.each(function(t,e){x.map(l.classesElementLookup,function(t){return
t}).some(function(t){return
t.is(e)})||i.push(e)}),l._on(x(i),{remove:"_untrackClassesElement"})}(),x(x.uniqueSort(i.get().concat(n.element.get())))):x(i.not(n.element).get()),l.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=x.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join("
")},_untrackClassesElement:function(i){var
s=this;x.each(s.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(s.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return
this._toggleClass(t,e,i,
!1)},_addClass:function(t,e,i){return
this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var
n="string"==typeof
t||null===t,i={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof
s?s:i};return
i.element.toggleClass(this._classes(i),s),this},_on:function(n,o,t){var
l,a=this;"boolean"!=typeof
n&&(t=o,o=n,n=!1),t?(o=l=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,l=this.widget()),x.each(t,function(t,e){function
i(){if(n||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof
e?a[e]:e).apply(a,arguments)}"string"!=typeof
e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var
s=t.match(/^([\w:-]*)\s*(.*)$/),t=s[1]+a.eventNamespace,s=s[2];s?l.on(t,s,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split("
").join(this.eventNamespace+"
")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){va
r i=this;return setTimeout(function(){return("string"==typeof
t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var
s,n,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s
in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof
o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,l){x.Widget.prototyp
e["_"+o]=function(e,t,i){var s,n=(t="string"==typeof
t?{effect:t}:t)?!0!==t&&"number"!=typeof
t&&t.effect||l:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&x.effects&&x.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}});var
s,C,E,o,r,u,h,c,k;x.widget;function
T(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function
A(t,e){return parseInt(x.css(t,e),10)||0}function W(t){return
null!=t&&t===t.window}C=Math.max,E=Math.abs,o=/left|center|right/,r=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,k=x.fn.position,x.position={scrollbarWidth:function(){if(void
0!==s)return s;var t,e=x("<div
style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div
style='height:300px;width:auto;'></div></div>"),i=e.children()[0];return
x("body").append(e),t=i.offsetWidth,e.
css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var
e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var
e=x(t||window),i=W(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:!i&&!s?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(c){if(!c||!c.of)return
k.apply(this,arguments);var
d,f,m,p,v,t,g="string"==typeof(c=x.extend({},c)).of?x(document).find(c.of):x(c.of),_=x.position.getWithinInfo(c.within),y=x.position.getScrollInfo(_),b=(c.collision||"flip").split("
"),w={},e=9===(t=(e=g)[0]).nodeType?{w
idth:e.width(),height:e.height(),offset:{top:0,left:0}}:W(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return
g[0].preventDefault&&(c.at="left
top"),f=e.width,m=e.height,v=x.extend({},p=e.offset),x.each(["my","at"],function(){var
t,e,i=(c[this]||"").split("
");(i=1===i.length?o.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=o.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=u.exec(i[0]),e=u.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],c[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===c.at[0]?v.left+=f:"center"===c.at[0]&&(v.left+=f/2),"bottom"===c.at[1]?v.top+=m:"center"===c.at[1]&&(v.top+=m/2),d=T(w.at,f,m),v.left+=d[0],v.top+=d[1],this.each(function(){var
i,t,l=x(this),a=l.outerWidth(),r=l.outerHeight(),e=A(this,"marginLeft"),s=A(t
his,"marginTop"),n=a+e+A(this,"marginRight")+y.width,o=r+s+A(this,"marginBottom")+y.height,u=x.extend({},v),h=T(w.my,l.outerWidth(),l.outerHeight());"right"===c.my[0]?u.left-=a:"center"===c.my[0]&&(u.left-=a/2),"bottom"===c.my[1]?u.top-=r:"center"===c.my[1]&&(u.top-=r/2),u.left+=h[0],u.top+=h[1],i={marginLeft:e,marginTop:s},x.each(["left","top"],function(t,e){x.ui.position[b[t]]&&x.ui.position[b[t]][e](u,{targetWidth:f,targetHeight:m,elemWidth:a,elemHeight:r,collisionPosition:i,collisionWidth:n,collisionHeight:o,offset:[d[0]+h[0],d[1]+h[1]],my:c.my,at:c.at,within:_,elem:l})}),c.using&&(t=function(t){var
e=p.left-u.left,i=e+f-a,s=p.top-u.top,n=s+m-r,o={target:{element:g,left:p.left,top:p.top,width:f,height:m},element:{element:l,left:u.left,top:u.top,width:a,height:r},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};f<a&&E(e+i)<f&&(o.horizontal="center"),m<r&&E(s+n)<m&&(o.vertical="middle"),C(E(e),E(i))>C(E(s),E(n))?o.important="horizontal":o.import
ant="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var
i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0<l&&a<=0?(i=t.left+l+e.collisionWidth-n-s,t.left+=l-i):t.left=!(0<a&&l<=0)&&a<l?s+n-e.collisionWidth:s:0<l?t.left+=l:0<a?t.left-=a:t.left=C(t.left-o,t.left)},top:function(t,e){var
i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,n=e.within.height,o=t.top-e.collisionPosition.marginTop,l=s-o,a=o+e.collisionHeight-n-s;e.collisionHeight>n?0<l&&a<=0?(i=t.top+l+e.collisionHeight-n-s,t.top+=l-i):t.top=!(0<a&&l<=0)&&a<l?s+n-e.collisionHeight:s:0<l?t.top+=l:0<a?t.top-=a:t.top=C(t.top-o,t.top)}},flip:{left:function(t,e){var
i=e.within,s=i.offset.left+i.scrollLeft,n=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,l=t.left-e.collisionPosition.marginLeft,a=l-o,r=l+e.collisionWidth-n-o,u="left"===e.my[0]?-e.elemWidth:"right"===e.my
[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,l=-2*e.offset[0];a<0?((s=t.left+u+i+l+e.collisionWidth-n-s)<0||s<E(a))&&(t.left+=u+i+l):0<r&&(0<(o=t.left-e.collisionPosition.marginLeft+u+i+l-o)||E(o)<r)&&(t.left+=u+i+l)},top:function(t,e){var
i=e.within,s=i.offset.top+i.scrollTop,n=i.height,o=i.isWindow?i.scrollTop:i.offset.top,l=t.top-e.collisionPosition.marginTop,a=l-o,r=l+e.collisionHeight-n-o,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,l=-2*e.offset[1];a<0?((s=t.top+u+i+l+e.collisionHeight-n-s)<0||s<E(a))&&(t.top+=u+i+l):0<r&&(0<(o=t.top-e.collisionPosition.marginTop+u+i+l-o)||E(o)<r)&&(t.top+=u+i+l)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};var
t;x.ui.position,x.ui.keyC
ode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.fn.extend({uniqueId:(t=0,function(){return
this.each(function(){this.id||(this.id="ui-id-"+
++t)})}),removeUniqueId:function(){return
this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.ui.safeActiveElement=function(e){var
i;try{i=e.activeElement}catch(t){i=e.body}return
i=!(i=i||e.body).nodeName?e.body:i},x.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:">
*",menus:"ul",position:{my:"left top",at:"right
top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget
ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.p
reventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var
e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter
.ui-menu-item":"_activateItem","mousemove
.ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave
.ui-menu":"collapseAll",focus:function(t,e){var
i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})}
,_activateItem:function(t){var
e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var
t=this.element.find(".ui-menu-item").removeAttr("role
aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex
role
aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role
aria-labelledby aria-expanded aria-hidden aria-disabled
tabIndex").removeUniqueId().show(),t.children().each(function(){var
t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var
e,i,s,n=!0;switch(t.keyCode){case
x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case
x.ui.keyCode.PAGE_DOWN:this.nextPage(
t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case
x.ui.keyCode.END:this._move("last","last",t);break;case
x.ui.keyCode.UP:this.previous(t);break;case
x.ui.keyCode.DOWN:this.next(t);break;case
x.ui.keyCode.LEFT:this.collapse(t);break;case
x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case
x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case
x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete
this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()
},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var
t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var
t=x(this),e=t.prev(),i=x("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon
"+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget
ui-widget-content
ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var
t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item,
.ui-menu-divider")).children().not(".ui-menu").uniqueId().at
tr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var
i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var
i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),th
is._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var
e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._clo
se(),this._open(t)},this.delay))},_open:function(t){var
e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var
t=i?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var
e=this.active&&this.active.parent().closest(".u
i-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var
e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return
this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return
this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var
s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var
e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,
s=this.element.innerHeight(),0===x.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var
e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===x.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return
0<(e=x(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return
this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var
e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),
this._trigger("select",t,e)},_filterMenuItems:function(t){var
t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new
RegExp("^"+t,"i");return
this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return
e.test(String.prototype.trim.call(x(this).children(".ui-menu-item-wrapper").text()))})}});x.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left
top",at:"left
bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var
i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:funct
ion(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var
e=x.ui.keyCode;switch(t.keyCode){case
e.PAGE_UP:i=!0,this._move("previousPage",t);break;case
e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case
e.UP:i=!0,this._keyEvent("previous",t);break;case
e.DOWN:i=!0,this._keyEvent("next",t);break;case
e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case
e.TAB:this.menu.active&&this.menu.select(t);break;case
e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return
i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var
e=x.ui.keyCode;switch(t.keyCode){case
e.PAGE_UP:this._move("previousPage",t);break;case
e.PAGE_DOWN:this._move("nextPage",t);break;case
e.UP:this._keyEvent("previous",t);break;case
e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t
.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var
i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return
this.menu.blur(),void
this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(
){this.liveRegion.html(x("<div>").text(i))},100))},menuselect:function(t,e){var
i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled
"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var
e=this.menu.element[0];return
t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var
t=this.options.appendTo;return
t=!(t=!(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front,
dialog"):t).length?this.document[0].body:t},_initSource:function(){var
i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof
this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var
t=this.term===this._value(),e=this.men
u.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return
t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void
0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var
e=++this.requestIndex;return
function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":v
isible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return
t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof
t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var
e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var
t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var
s=this;x.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return
this._renderItem(t,e).data("ui-autocomplete-item",
e)},_renderItem:function(t,e){return
x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return
this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void
this.menu.blur()):void
this.menu[t](e);this.search(null,e)},widget:function(){return
this.menu.element},_value:function(){return
this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var
e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return
t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var
i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return
x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget(
"ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search
results.",results:function(t){return t+(1<t?" results are":" result is")+"
available, use up and down arrow keys to
navigate."}}},__response:function(t){var
e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("<div>").text(e))},100))}});x.ui.autocomplete});
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-daemon/apidocs/script.js
==============================================================================
--- websites/production/commons/content/proper/commons-daemon/apidocs/script.js
(original)
+++ websites/production/commons/content/proper/commons-daemon/apidocs/script.js
Fri May 24 09:43:12 2024
@@ -1,30 +1,132 @@
-function show(type)
-{
- count = 0;
- for (var key in methods) {
- var row = document.getElementById(key);
- if ((methods[key] & type) != 0) {
- row.style.display = '';
- row.className = (count++ % 2) ? rowColor : altColor;
+/*
+ * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+var moduleSearchIndex;
+var packageSearchIndex;
+var typeSearchIndex;
+var memberSearchIndex;
+var tagSearchIndex;
+function loadScripts(doc, tag) {
+ createElem(doc, tag, 'search.js');
+
+ createElem(doc, tag, 'module-search-index.js');
+ createElem(doc, tag, 'package-search-index.js');
+ createElem(doc, tag, 'type-search-index.js');
+ createElem(doc, tag, 'member-search-index.js');
+ createElem(doc, tag, 'tag-search-index.js');
+}
+
+function createElem(doc, tag, path) {
+ var script = doc.createElement(tag);
+ var scriptElement = doc.getElementsByTagName(tag)[0];
+ script.src = pathtoroot + path;
+ scriptElement.parentNode.insertBefore(script, scriptElement);
+}
+
+function show(tableId, selected, columns) {
+ if (tableId !== selected) {
+ document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')')
+ .forEach(function(elem) {
+ elem.style.display = 'none';
+ });
+ }
+ document.querySelectorAll('div.' + selected)
+ .forEach(function(elem, index) {
+ elem.style.display = '';
+ var isEvenRow = index % (columns * 2) < columns;
+ elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor);
+ elem.classList.add(isEvenRow ? evenRowColor : oddRowColor);
+ });
+ updateTabs(tableId, selected);
+}
+
+function updateTabs(tableId, selected) {
+ document.querySelector('div#' + tableId +' .summary-table')
+ .setAttribute('aria-labelledby', selected);
+ document.querySelectorAll('button[id^="' + tableId + '"]')
+ .forEach(function(tab, index) {
+ if (selected === tab.id || (tableId === selected && index === 0)) {
+ tab.className = activeTableTab;
+ tab.setAttribute('aria-selected', true);
+ tab.setAttribute('tabindex',0);
+ } else {
+ tab.className = tableTab;
+ tab.setAttribute('aria-selected', false);
+ tab.setAttribute('tabindex',-1);
+ }
+ });
+}
+
+function switchTab(e) {
+ var selected = document.querySelector('[aria-selected=true]');
+ if (selected) {
+ if ((e.keyCode === 37 || e.keyCode === 38) &&
selected.previousSibling) {
+ // left or up arrow key pressed: move focus to previous tab
+ selected.previousSibling.click();
+ selected.previousSibling.focus();
+ e.preventDefault();
+ } else if ((e.keyCode === 39 || e.keyCode === 40) &&
selected.nextSibling) {
+ // right or down arrow key pressed: move focus to next tab
+ selected.nextSibling.click();
+ selected.nextSibling.focus();
+ e.preventDefault();
}
- else
- row.style.display = 'none';
}
- updateTabs(type);
}
-function updateTabs(type)
-{
- for (var value in tabs) {
- var sNode = document.getElementById(tabs[value][0]);
- var spanNode = sNode.firstChild;
- if (value == type) {
- sNode.className = activeTableTab;
- spanNode.innerHTML = tabs[value][1];
+var updateSearchResults = function() {};
+
+function indexFilesLoaded() {
+ return moduleSearchIndex
+ && packageSearchIndex
+ && typeSearchIndex
+ && memberSearchIndex
+ && tagSearchIndex;
+}
+
+// Workaround for scroll position not being included in browser history
(8249133)
+document.addEventListener("DOMContentLoaded", function(e) {
+ var contentDiv = document.querySelector("div.flex-content");
+ window.addEventListener("popstate", function(e) {
+ if (e.state !== null) {
+ contentDiv.scrollTop = e.state;
}
- else {
- sNode.className = tableTab;
- spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">"
+ tabs[value][1] + "</a>";
+ });
+ window.addEventListener("hashchange", function(e) {
+ history.replaceState(contentDiv.scrollTop, document.title);
+ });
+ contentDiv.addEventListener("scroll", function(e) {
+ var timeoutID;
+ if (!timeoutID) {
+ timeoutID = setTimeout(function() {
+ history.replaceState(contentDiv.scrollTop, document.title);
+ timeoutID = null;
+ }, 100);
}
+ });
+ if (!location.hash) {
+ history.replaceState(contentDiv.scrollTop, document.title);
}
-}
\ No newline at end of file
+});
\ No newline at end of file
Added:
websites/production/commons/content/proper/commons-daemon/apidocs/search.js
==============================================================================
--- websites/production/commons/content/proper/commons-daemon/apidocs/search.js
(added)
+++ websites/production/commons/content/proper/commons-daemon/apidocs/search.js
Fri May 24 09:43:12 2024
@@ -0,0 +1,354 @@
+/*
+ * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation. Oracle designates this
+ * particular file as subject to the "Classpath" exception as provided
+ * by Oracle in the LICENSE file that accompanied this code.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+var noResult = {l: "No results found"};
+var loading = {l: "Loading search index..."};
+var catModules = "Modules";
+var catPackages = "Packages";
+var catTypes = "Types";
+var catMembers = "Members";
+var catSearchTags = "Search Tags";
+var highlight = "<span class=\"result-highlight\">$&</span>";
+var searchPattern = "";
+var fallbackPattern = "";
+var RANKING_THRESHOLD = 2;
+var NO_MATCH = 0xffff;
+var MIN_RESULTS = 3;
+var MAX_RESULTS = 500;
+var UNNAMED = "<Unnamed>";
+function escapeHtml(str) {
+ return str.replace(/</g, "<").replace(/>/g, ">");
+}
+function getHighlightedText(item, matcher, fallbackMatcher) {
+ var escapedItem = escapeHtml(item);
+ var highlighted = escapedItem.replace(matcher, highlight);
+ if (highlighted === escapedItem) {
+ highlighted = escapedItem.replace(fallbackMatcher, highlight)
+ }
+ return highlighted;
+}
+function getURLPrefix(ui) {
+ var urlPrefix="";
+ var slash = "/";
+ if (ui.item.category === catModules) {
+ return ui.item.l + slash;
+ } else if (ui.item.category === catPackages && ui.item.m) {
+ return ui.item.m + slash;
+ } else if (ui.item.category === catTypes || ui.item.category ===
catMembers) {
+ if (ui.item.m) {
+ urlPrefix = ui.item.m + slash;
+ } else {
+ $.each(packageSearchIndex, function(index, item) {
+ if (item.m && ui.item.p === item.l) {
+ urlPrefix = item.m + slash;
+ }
+ });
+ }
+ }
+ return urlPrefix;
+}
+function createSearchPattern(term) {
+ var pattern = "";
+ var isWordToken = false;
+ term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index)
{
+ if (index > 0) {
+ // whitespace between identifiers is significant
+ pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*";
+ }
+ var tokens = w.split(/(?=[A-Z,.()<>[\/])/);
+ for (var i = 0; i < tokens.length; i++) {
+ var s = tokens[i];
+ if (s === "") {
+ continue;
+ }
+ pattern += $.ui.autocomplete.escapeRegex(s);
+ isWordToken = /\w$/.test(s);
+ if (isWordToken) {
+ pattern += "([a-z0-9_$<>\\[\\]]*?)";
+ }
+ }
+ });
+ return pattern;
+}
+function createMatcher(pattern, flags) {
+ var isCamelCase = /[A-Z]/.test(pattern);
+ return new RegExp(pattern, flags + (isCamelCase ? "" : "i"));
+}
+var watermark = 'Search';
+$(function() {
+ var search = $("#search-input");
+ var reset = $("#reset-button");
+ search.val('');
+ search.prop("disabled", false);
+ reset.prop("disabled", false);
+ search.val(watermark).addClass('watermark');
+ search.blur(function() {
+ if ($(this).val().length === 0) {
+ $(this).val(watermark).addClass('watermark');
+ }
+ });
+ search.on('click keydown paste', function() {
+ if ($(this).val() === watermark) {
+ $(this).val('').removeClass('watermark');
+ }
+ });
+ reset.click(function() {
+ search.val('').focus();
+ });
+ search.focus()[0].setSelectionRange(0, 0);
+});
+$.widget("custom.catcomplete", $.ui.autocomplete, {
+ _create: function() {
+ this._super();
+ this.widget().menu("option", "items", ">
:not(.ui-autocomplete-category)");
+ },
+ _renderMenu: function(ul, items) {
+ var rMenu = this;
+ var currentCategory = "";
+ rMenu.menu.bindings = $();
+ $.each(items, function(index, item) {
+ var li;
+ if (item.category && item.category !== currentCategory) {
+ ul.append("<li class=\"ui-autocomplete-category\">" +
item.category + "</li>");
+ currentCategory = item.category;
+ }
+ li = rMenu._renderItemData(ul, item);
+ if (item.category) {
+ li.attr("aria-label", item.category + " : " + item.l);
+ li.attr("class", "result-item");
+ } else {
+ li.attr("aria-label", item.l);
+ li.attr("class", "result-item");
+ }
+ });
+ },
+ _renderItem: function(ul, item) {
+ var label = "";
+ var matcher = createMatcher(escapeHtml(searchPattern), "g");
+ var fallbackMatcher = new RegExp(fallbackPattern, "gi")
+ if (item.category === catModules) {
+ label = getHighlightedText(item.l, matcher, fallbackMatcher);
+ } else if (item.category === catPackages) {
+ label = getHighlightedText(item.l, matcher, fallbackMatcher);
+ } else if (item.category === catTypes) {
+ label = (item.p && item.p !== UNNAMED)
+ ? getHighlightedText(item.p + "." + item.l, matcher,
fallbackMatcher)
+ : getHighlightedText(item.l, matcher, fallbackMatcher);
+ } else if (item.category === catMembers) {
+ label = (item.p && item.p !== UNNAMED)
+ ? getHighlightedText(item.p + "." + item.c + "." + item.l,
matcher, fallbackMatcher)
+ : getHighlightedText(item.c + "." + item.l, matcher,
fallbackMatcher);
+ } else if (item.category === catSearchTags) {
+ label = getHighlightedText(item.l, matcher, fallbackMatcher);
+ } else {
+ label = item.l;
+ }
+ var li = $("<li/>").appendTo(ul);
+ var div = $("<div/>").appendTo(li);
+ if (item.category === catSearchTags && item.h) {
+ if (item.d) {
+ div.html(label + "<span class=\"search-tag-holder-result\"> ("
+ item.h + ")</span><br><span class=\"search-tag-desc-result\">"
+ + item.d + "</span><br>");
+ } else {
+ div.html(label + "<span class=\"search-tag-holder-result\"> ("
+ item.h + ")</span>");
+ }
+ } else {
+ if (item.m) {
+ div.html(item.m + "/" + label);
+ } else {
+ div.html(label);
+ }
+ }
+ return li;
+ }
+});
+function rankMatch(match, category) {
+ if (!match) {
+ return NO_MATCH;
+ }
+ var index = match.index;
+ var input = match.input;
+ var leftBoundaryMatch = 2;
+ var periferalMatch = 0;
+ // make sure match is anchored on a left word boundary
+ if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) {
+ leftBoundaryMatch = 0;
+ } else if ("_" === input[index - 1] || (input[index] ===
input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) {
+ leftBoundaryMatch = 1;
+ }
+ var matchEnd = index + match[0].length;
+ var leftParen = input.indexOf("(");
+ var endOfName = leftParen > -1 ? leftParen : input.length;
+ // exclude peripheral matches
+ if (category !== catModules && category !== catSearchTags) {
+ var delim = category === catPackages ? "/" : ".";
+ if (leftParen > -1 && leftParen < index) {
+ periferalMatch += 2;
+ } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) {
+ periferalMatch += 2;
+ }
+ }
+ var delta = match[0].length === endOfName ? 0 : 1; // rank full match
higher than partial match
+ for (var i = 1; i < match.length; i++) {
+ // lower ranking if parts of the name are missing
+ if (match[i])
+ delta += match[i].length;
+ }
+ if (category === catTypes) {
+ // lower ranking if a type name contains unmatched camel-case parts
+ if (/[A-Z]/.test(input.substring(matchEnd)))
+ delta += 5;
+ if (/[A-Z]/.test(input.substring(0, index)))
+ delta += 5;
+ }
+ return leftBoundaryMatch + periferalMatch + (delta / 200);
+
+}
+function doSearch(request, response) {
+ var result = [];
+ searchPattern = createSearchPattern(request.term);
+ fallbackPattern = createSearchPattern(request.term.toLowerCase());
+ if (searchPattern === "") {
+ return this.close();
+ }
+ var camelCaseMatcher = createMatcher(searchPattern, "");
+ var fallbackMatcher = new RegExp(fallbackPattern, "i");
+
+ function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) {
+ if (indexArray) {
+ var newResults = [];
+ $.each(indexArray, function (i, item) {
+ item.category = category;
+ var ranking = rankMatch(matcher.exec(nameFunc(item)),
category);
+ if (ranking < RANKING_THRESHOLD) {
+ newResults.push({ranking: ranking, item: item});
+ }
+ return newResults.length <= MAX_RESULTS;
+ });
+ return newResults.sort(function(e1, e2) {
+ return e1.ranking - e2.ranking;
+ }).map(function(e) {
+ return e.item;
+ });
+ }
+ return [];
+ }
+ function searchIndex(indexArray, category, nameFunc) {
+ var primaryResults = searchIndexWithMatcher(indexArray,
camelCaseMatcher, category, nameFunc);
+ result = result.concat(primaryResults);
+ if (primaryResults.length <= MIN_RESULTS &&
!camelCaseMatcher.ignoreCase) {
+ var secondaryResults = searchIndexWithMatcher(indexArray,
fallbackMatcher, category, nameFunc);
+ result = result.concat(secondaryResults.filter(function (item) {
+ return primaryResults.indexOf(item) === -1;
+ }));
+ }
+ }
+
+ searchIndex(moduleSearchIndex, catModules, function(item) { return item.l;
});
+ searchIndex(packageSearchIndex, catPackages, function(item) {
+ return (item.m && request.term.indexOf("/") > -1)
+ ? (item.m + "/" + item.l) : item.l;
+ });
+ searchIndex(typeSearchIndex, catTypes, function(item) {
+ return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l;
+ });
+ searchIndex(memberSearchIndex, catMembers, function(item) {
+ return request.term.indexOf(".") > -1
+ ? item.p + "." + item.c + "." + item.l : item.l;
+ });
+ searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l;
});
+
+ if (!indexFilesLoaded()) {
+ updateSearchResults = function() {
+ doSearch(request, response);
+ }
+ result.unshift(loading);
+ } else {
+ updateSearchResults = function() {};
+ }
+ response(result);
+}
+$(function() {
+ $("#search-input").catcomplete({
+ minLength: 1,
+ delay: 300,
+ source: doSearch,
+ response: function(event, ui) {
+ if (!ui.content.length) {
+ ui.content.push(noResult);
+ } else {
+ $("#search-input").empty();
+ }
+ },
+ autoFocus: true,
+ focus: function(event, ui) {
+ return false;
+ },
+ position: {
+ collision: "flip"
+ },
+ select: function(event, ui) {
+ if (ui.item.category) {
+ var url = getURLPrefix(ui);
+ if (ui.item.category === catModules) {
+ url += "module-summary.html";
+ } else if (ui.item.category === catPackages) {
+ if (ui.item.u) {
+ url = ui.item.u;
+ } else {
+ url += ui.item.l.replace(/\./g, '/') +
"/package-summary.html";
+ }
+ } else if (ui.item.category === catTypes) {
+ if (ui.item.u) {
+ url = ui.item.u;
+ } else if (ui.item.p === UNNAMED) {
+ url += ui.item.l + ".html";
+ } else {
+ url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l
+ ".html";
+ }
+ } else if (ui.item.category === catMembers) {
+ if (ui.item.p === UNNAMED) {
+ url += ui.item.c + ".html" + "#";
+ } else {
+ url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c
+ ".html" + "#";
+ }
+ if (ui.item.u) {
+ url += ui.item.u;
+ } else {
+ url += ui.item.l;
+ }
+ } else if (ui.item.category === catSearchTags) {
+ url += ui.item.u;
+ }
+ if (top !== window) {
+ parent.classFrame.location = pathtoroot + url;
+ } else {
+ window.location.href = pathtoroot + url;
+ }
+ $("#search-input").focus();
+ }
+ }
+ });
+});
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-daemon/apidocs/serialized-form.html
==============================================================================
---
websites/production/commons/content/proper/commons-daemon/apidocs/serialized-form.html
(original)
+++
websites/production/commons/content/proper/commons-daemon/apidocs/serialized-form.html
Fri May 24 09:43:12 2024
@@ -1,151 +1,90 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
-<!-- NewPage -->
+<!DOCTYPE HTML>
<html lang="en">
<head>
-<!-- Generated by javadoc -->
+<!-- Generated by javadoc (17) -->
+<title>Serialized Form (Apache Commons Daemon 1.4.0 API)</title>
+<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-<title>Serialized Form (Apache Commons Daemon 1.3.4 API)</title>
+<meta name="description" content="serialized forms">
+<meta name="generator" content="javadoc/SerializedFormWriterImpl">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
+<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css"
title="Style">
+<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css"
title="Style">
<script type="text/javascript" src="script.js"></script>
+<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script>
+<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script>
</head>
-<body>
-<script type="text/javascript"><!--
- try {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="Serialized Form (Apache Commons Daemon
1.3.4 API)";
- }
- }
- catch(err) {
- }
-//-->
-</script>
+<body class="serialized-form-page">
+<script type="text/javascript">var pathtoroot = "./";
+loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
+<div class="flex-box">
+<header role="banner" class="flex-header">
+<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
-<div class="topNav"><a name="navbar.top">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation
links">Skip navigation links</a></div>
-<a name="navbar.top.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="overview-summary.html">Overview</a></li>
+<div class="top-nav" id="navbar-top">
+<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation
links">Skip navigation links</a></div>
+<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
+<li><a href="index.html">Overview</a></li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
-<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
-<li><a href="help-doc.html">Help</a></li>
+<li><a href="help-doc.html#serialized-form">Help</a></li>
</ul>
</div>
-<div class="subNav">
-<ul class="navList">
-<li>Prev</li>
-<li>Next</li>
-</ul>
-<ul class="navList">
-<li><a href="index.html?serialized-form.html" target="_top">Frames</a></li>
-<li><a href="serialized-form.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_top">
-<li><a href="allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_top");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<a name="skip.navbar.top">
-<!-- -->
-</a></div>
+<div class="sub-nav">
+<div class="nav-list-search"><label for="search-input">SEARCH:</label>
+<input type="text" id="search-input" value="search" disabled="disabled">
+<input type="reset" id="reset-button" value="reset" disabled="disabled">
+</div>
+</div>
<!-- ========= END OF TOP NAVBAR ========= -->
+<span class="skip-nav" id="skip-navbar-top"></span></nav>
+</header>
+<div class="flex-content">
+<main role="main">
<div class="header">
<h1 title="Serialized Form" class="title">Serialized Form</h1>
</div>
-<div class="serializedFormContainer">
-<ul class="blockList">
-<li class="blockList">
-<h2 title="Package">Package org.apache.commons.daemon</h2>
-<ul class="blockList">
-<li class="blockList"><a name="org.apache.commons.daemon.DaemonInitException">
-<!-- -->
-</a>
-<h3>Class <a href="org/apache/commons/daemon/DaemonInitException.html"
title="class in
org.apache.commons.daemon">org.apache.commons.daemon.DaemonInitException</a>
extends <a
href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true"
title="class or interface in java.lang">Exception</a> implements
Serializable</h3>
-<dl class="nameValue">
+<ul class="block-list">
+<li>
+<section class="serialized-package-container">
+<h2 title="Package">Package <a
href="org/apache/commons/daemon/package-summary.html">org.apache.commons.daemon</a></h2>
+<ul class="block-list">
+<li>
+<section class="serialized-class-details"
id="org.apache.commons.daemon.DaemonInitException">
+<h3>Exception <a
href="org/apache/commons/daemon/DaemonInitException.html" title="class in
org.apache.commons.daemon">org.apache.commons.daemon.DaemonInitException</a></h3>
+<div class="type-signature">class DaemonInitException extends <a
href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Exception.html"
title="class or interface in java.lang" class="external-link">Exception</a>
implements <a
href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/Serializable.html"
title="class or interface in java.io"
class="external-link">Serializable</a></div>
+<dl class="name-value">
<dt>serialVersionUID:</dt>
<dd>5665891535067213551L</dd>
</dl>
+</section>
</li>
-<li class="blockList"><a name="org.apache.commons.daemon.DaemonPermission">
-<!-- -->
-</a>
-<h3>Class <a href="org/apache/commons/daemon/DaemonPermission.html"
title="class in
org.apache.commons.daemon">org.apache.commons.daemon.DaemonPermission</a>
extends <a
href="https://docs.oracle.com/javase/8/docs/api/java/security/Permission.html?is-external=true"
title="class or interface in java.security">Permission</a> implements
Serializable</h3>
-<dl class="nameValue">
+<li>
+<section class="serialized-class-details"
id="org.apache.commons.daemon.DaemonPermission">
+<h3>Class <a href="org/apache/commons/daemon/DaemonPermission.html"
title="class in
org.apache.commons.daemon">org.apache.commons.daemon.DaemonPermission</a></h3>
+<div class="type-signature">class DaemonPermission extends <a
href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/Permission.html"
title="class or interface in java.security"
class="external-link">Permission</a> implements <a
href="https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/io/Serializable.html"
title="class or interface in java.io"
class="external-link">Serializable</a></div>
+<dl class="name-value">
<dt>serialVersionUID:</dt>
<dd>-8682149075879731987L</dd>
</dl>
+</section>
</li>
</ul>
+</section>
</li>
</ul>
+</main>
+<footer role="contentinfo">
+<hr>
+<p class="legal-copy"><small>Copyright © 2002–2024 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</small></p>
+</footer>
</div>
-<!-- ======= START OF BOTTOM NAVBAR ====== -->
-<div class="bottomNav"><a name="navbar.bottom">
-<!-- -->
-</a>
-<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation
links">Skip navigation links</a></div>
-<a name="navbar.bottom.firstrow">
-<!-- -->
-</a>
-<ul class="navList" title="Navigation">
-<li><a href="overview-summary.html">Overview</a></li>
-<li>Package</li>
-<li>Class</li>
-<li>Use</li>
-<li><a href="overview-tree.html">Tree</a></li>
-<li><a href="deprecated-list.html">Deprecated</a></li>
-<li><a href="index-all.html">Index</a></li>
-<li><a href="help-doc.html">Help</a></li>
-</ul>
</div>
-<div class="subNav">
-<ul class="navList">
-<li>Prev</li>
-<li>Next</li>
-</ul>
-<ul class="navList">
-<li><a href="index.html?serialized-form.html" target="_top">Frames</a></li>
-<li><a href="serialized-form.html" target="_top">No Frames</a></li>
-</ul>
-<ul class="navList" id="allclasses_navbar_bottom">
-<li><a href="allclasses-noframe.html">All Classes</a></li>
-</ul>
-<div>
-<script type="text/javascript"><!--
- allClassesLink = document.getElementById("allclasses_navbar_bottom");
- if(window==top) {
- allClassesLink.style.display = "block";
- }
- else {
- allClassesLink.style.display = "none";
- }
- //-->
-</script>
-</div>
-<a name="skip.navbar.bottom">
-<!-- -->
-</a></div>
-<!-- ======== END OF BOTTOM NAVBAR ======= -->
-<p class="legalCopy"><small>Copyright © 2002–2023 <a
href="https://www.apache.org/">The Apache Software Foundation</a>. All rights
reserved.</small></p>
</body>
</html>
\ No newline at end of file
Modified:
websites/production/commons/content/proper/commons-daemon/apidocs/src-html/org/apache/commons/daemon/Daemon.html
==============================================================================
---
websites/production/commons/content/proper/commons-daemon/apidocs/src-html/org/apache/commons/daemon/Daemon.html
(original)
+++
websites/production/commons/content/proper/commons-daemon/apidocs/src-html/org/apache/commons/daemon/Daemon.html
Fri May 24 09:43:12 2024
@@ -1,119 +1,124 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE HTML>
<html lang="en">
<head>
+<!-- Generated by javadoc (17) -->
<title>Source code</title>
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="description" content="source: package: org.apache.commons.daemon,
interface: Daemon">
+<meta name="generator" content="javadoc/SourceToHTMLConverter">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css"
title="Style">
</head>
-<body>
-<div class="sourceContainer">
-<pre><span class="sourceLineNo">001</span>/*<a name="line.1"></a>
-<span class="sourceLineNo">002</span> * Licensed to the Apache Software
Foundation (ASF) under one or more<a name="line.2"></a>
-<span class="sourceLineNo">003</span> * contributor license agreements. See
the NOTICE file distributed with<a name="line.3"></a>
-<span class="sourceLineNo">004</span> * this work for additional information
regarding copyright ownership.<a name="line.4"></a>
-<span class="sourceLineNo">005</span> * The ASF licenses this file to You
under the Apache License, Version 2.0<a name="line.5"></a>
-<span class="sourceLineNo">006</span> * (the "License"); you may not use this
file except in compliance with<a name="line.6"></a>
-<span class="sourceLineNo">007</span> * the License. You may obtain a copy
of the License at<a name="line.7"></a>
-<span class="sourceLineNo">008</span> *<a name="line.8"></a>
-<span class="sourceLineNo">009</span> *
http://www.apache.org/licenses/LICENSE-2.0<a name="line.9"></a>
-<span class="sourceLineNo">010</span> *<a name="line.10"></a>
-<span class="sourceLineNo">011</span> * Unless required by applicable law or
agreed to in writing, software<a name="line.11"></a>
-<span class="sourceLineNo">012</span> * distributed under the License is
distributed on an "AS IS" BASIS,<a name="line.12"></a>
-<span class="sourceLineNo">013</span> * WITHOUT WARRANTIES OR CONDITIONS OF
ANY KIND, either express or implied.<a name="line.13"></a>
-<span class="sourceLineNo">014</span> * See the License for the specific
language governing permissions and<a name="line.14"></a>
-<span class="sourceLineNo">015</span> * limitations under the License.<a
name="line.15"></a>
-<span class="sourceLineNo">016</span> */<a name="line.16"></a>
-<span class="sourceLineNo">017</span><a name="line.17"></a>
-<span class="sourceLineNo">018</span>package org.apache.commons.daemon;<a
name="line.18"></a>
-<span class="sourceLineNo">019</span><a name="line.19"></a>
-<span class="sourceLineNo">020</span>/**<a name="line.20"></a>
-<span class="sourceLineNo">021</span> * Provides support for native daemon
invocation. Using<a name="line.21"></a>
-<span class="sourceLineNo">022</span> * a platform dependant helper program,
classes that implement the<a name="line.22"></a>
-<span class="sourceLineNo">023</span> * {@code Daemon} interface can be
initialized, started and<a name="line.23"></a>
-<span class="sourceLineNo">024</span> * stopped according to the conventions
of the underlying operating<a name="line.24"></a>
-<span class="sourceLineNo">025</span> * system.<a name="line.25"></a>
-<span class="sourceLineNo">026</span> * <p><a name="line.26"></a>
-<span class="sourceLineNo">027</span> * Implementors of this interface must
also provide a public constructor<a name="line.27"></a>
-<span class="sourceLineNo">028</span> * with no arguments so that instances
can be created in an automated<a name="line.28"></a>
-<span class="sourceLineNo">029</span> * fashion.<a name="line.29"></a>
-<span class="sourceLineNo">030</span> * </p><a name="line.30"></a>
-<span class="sourceLineNo">031</span> */<a name="line.31"></a>
-<span class="sourceLineNo">032</span>public interface Daemon<a
name="line.32"></a>
-<span class="sourceLineNo">033</span>{<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span> /**<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * Initializes this {@code Daemon}
instance.<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * <p><a name="line.37"></a>
-<span class="sourceLineNo">038</span> * This method gets called once the
JVM process is created and the<a name="line.38"></a>
-<span class="sourceLineNo">039</span> * {@code Daemon} instance is
created thru its empty public<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * constructor.<a
name="line.40"></a>
-<span class="sourceLineNo">041</span> * </p><a name="line.41"></a>
-<span class="sourceLineNo">042</span> * <p><a name="line.42"></a>
-<span class="sourceLineNo">043</span> * Under certain operating systems
(typically Unix based operating<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * systems) and if the native
invocation framework is configured to do<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * so, this method might be called
with <i>super-user</i> privileges.<a name="line.45"></a>
-<span class="sourceLineNo">046</span> * </p><a name="line.46"></a>
-<span class="sourceLineNo">047</span> * <p><a name="line.47"></a>
-<span class="sourceLineNo">048</span> * For example, it might be wise to
create {@code ServerSocket}<a name="line.48"></a>
-<span class="sourceLineNo">049</span> * instances within the scope of
this method, and perform all operations<a name="line.49"></a>
-<span class="sourceLineNo">050</span> * requiring
<i>super-user</i> privileges in the underlying operating<a
name="line.50"></a>
-<span class="sourceLineNo">051</span> * system.<a name="line.51"></a>
-<span class="sourceLineNo">052</span> * </p><a name="line.52"></a>
-<span class="sourceLineNo">053</span> * <p><a name="line.53"></a>
-<span class="sourceLineNo">054</span> * Apart from set up and allocation
of native resources, this method<a name="line.54"></a>
-<span class="sourceLineNo">055</span> * must not start the actual
operation of the {@code Daemon} (such<a name="line.55"></a>
-<span class="sourceLineNo">056</span> * as starting threads calling the
{@code ServerSocket.accept()}<a name="line.56"></a>
-<span class="sourceLineNo">057</span> * method) as this would impose
some serious security hazards. The<a name="line.57"></a>
-<span class="sourceLineNo">058</span> * start of operation must be
performed in the {@code start()}<a name="line.58"></a>
-<span class="sourceLineNo">059</span> * method.<a name="line.59"></a>
-<span class="sourceLineNo">060</span> * </p><a name="line.60"></a>
-<span class="sourceLineNo">061</span> *<a name="line.61"></a>
-<span class="sourceLineNo">062</span> * @param context A {@code
DaemonContext} object used to<a name="line.62"></a>
-<span class="sourceLineNo">063</span> * communicate with the container.<a
name="line.63"></a>
-<span class="sourceLineNo">064</span> * @throws DaemonInitException An
exception that prevented<a name="line.64"></a>
-<span class="sourceLineNo">065</span> * initialization where you want to
display a nice message to the user,<a name="line.65"></a>
-<span class="sourceLineNo">066</span> * rather than a stack trace.<a
name="line.66"></a>
-<span class="sourceLineNo">067</span> * @throws Exception Any exception
preventing a successful<a name="line.67"></a>
-<span class="sourceLineNo">068</span> *
initialization.<a name="line.68"></a>
-<span class="sourceLineNo">069</span> */<a name="line.69"></a>
-<span class="sourceLineNo">070</span> void init(DaemonContext context)<a
name="line.70"></a>
-<span class="sourceLineNo">071</span> throws DaemonInitException,
Exception;<a name="line.71"></a>
-<span class="sourceLineNo">072</span><a name="line.72"></a>
-<span class="sourceLineNo">073</span> /**<a name="line.73"></a>
-<span class="sourceLineNo">074</span> * Starts the operation of this
{@code Daemon} instance. This<a name="line.74"></a>
-<span class="sourceLineNo">075</span> * method is to be invoked by the
environment after the init()<a name="line.75"></a>
-<span class="sourceLineNo">076</span> * method has been successfully
invoked and possibly the security<a name="line.76"></a>
-<span class="sourceLineNo">077</span> * level of the JVM has been dropped.
Implementors of this<a name="line.77"></a>
-<span class="sourceLineNo">078</span> * method are free to start any
number of threads, but need to<a name="line.78"></a>
-<span class="sourceLineNo">079</span> * return control after having done
that to enable invocation of<a name="line.79"></a>
-<span class="sourceLineNo">080</span> * the stop()-method.<a
name="line.80"></a>
-<span class="sourceLineNo">081</span> *<a name="line.81"></a>
-<span class="sourceLineNo">082</span> * @throws Exception If the start was
not successful<a name="line.82"></a>
-<span class="sourceLineNo">083</span> */<a name="line.83"></a>
-<span class="sourceLineNo">084</span> void start()<a name="line.84"></a>
-<span class="sourceLineNo">085</span> throws Exception;<a
name="line.85"></a>
-<span class="sourceLineNo">086</span><a name="line.86"></a>
-<span class="sourceLineNo">087</span> /**<a name="line.87"></a>
-<span class="sourceLineNo">088</span> * Stops the operation of this {@code
Daemon} instance. Note<a name="line.88"></a>
-<span class="sourceLineNo">089</span> * that the proper place to free any
allocated resources such as<a name="line.89"></a>
-<span class="sourceLineNo">090</span> * sockets or file descriptors is in
the destroy method, as the<a name="line.90"></a>
-<span class="sourceLineNo">091</span> * container may restart the Daemon
by calling start() after<a name="line.91"></a>
-<span class="sourceLineNo">092</span> * stop().<a name="line.92"></a>
-<span class="sourceLineNo">093</span> *<a name="line.93"></a>
-<span class="sourceLineNo">094</span> * @throws Exception If the stop was
not successful<a name="line.94"></a>
-<span class="sourceLineNo">095</span> */<a name="line.95"></a>
-<span class="sourceLineNo">096</span> void stop()<a name="line.96"></a>
-<span class="sourceLineNo">097</span> throws Exception;<a
name="line.97"></a>
-<span class="sourceLineNo">098</span><a name="line.98"></a>
-<span class="sourceLineNo">099</span> /**<a name="line.99"></a>
-<span class="sourceLineNo">100</span> * Frees any resources allocated by
this daemon such as file<a name="line.100"></a>
-<span class="sourceLineNo">101</span> * descriptors or sockets. This
method gets called by the container<a name="line.101"></a>
-<span class="sourceLineNo">102</span> * after stop() has been called,
before the JVM exits. The Daemon<a name="line.102"></a>
-<span class="sourceLineNo">103</span> * can not be restarted after this
method has been called without a<a name="line.103"></a>
-<span class="sourceLineNo">104</span> * new call to the init() method.<a
name="line.104"></a>
-<span class="sourceLineNo">105</span> */<a name="line.105"></a>
-<span class="sourceLineNo">106</span> void destroy();<a name="line.106"></a>
-<span class="sourceLineNo">107</span>}<a name="line.107"></a>
-<span class="sourceLineNo">108</span><a name="line.108"></a>
+<body class="source-page">
+<main role="main">
+<div class="source-container">
+<pre><span class="source-line-no">001</span><span id="line-1">/*</span>
+<span class="source-line-no">002</span><span id="line-2"> * Licensed to the
Apache Software Foundation (ASF) under one or more</span>
+<span class="source-line-no">003</span><span id="line-3"> * contributor
license agreements. See the NOTICE file distributed with</span>
+<span class="source-line-no">004</span><span id="line-4"> * this work for
additional information regarding copyright ownership.</span>
+<span class="source-line-no">005</span><span id="line-5"> * The ASF licenses
this file to You under the Apache License, Version 2.0</span>
+<span class="source-line-no">006</span><span id="line-6"> * (the "License");
you may not use this file except in compliance with</span>
+<span class="source-line-no">007</span><span id="line-7"> * the License. You
may obtain a copy of the License at</span>
+<span class="source-line-no">008</span><span id="line-8"> *</span>
+<span class="source-line-no">009</span><span id="line-9"> *
http://www.apache.org/licenses/LICENSE-2.0</span>
+<span class="source-line-no">010</span><span id="line-10"> *</span>
+<span class="source-line-no">011</span><span id="line-11"> * Unless required
by applicable law or agreed to in writing, software</span>
+<span class="source-line-no">012</span><span id="line-12"> * distributed
under the License is distributed on an "AS IS" BASIS,</span>
+<span class="source-line-no">013</span><span id="line-13"> * WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span>
+<span class="source-line-no">014</span><span id="line-14"> * See the License
for the specific language governing permissions and</span>
+<span class="source-line-no">015</span><span id="line-15"> * limitations
under the License.</span>
+<span class="source-line-no">016</span><span id="line-16"> */</span>
+<span class="source-line-no">017</span><span id="line-17"></span>
+<span class="source-line-no">018</span><span id="line-18">package
org.apache.commons.daemon;</span>
+<span class="source-line-no">019</span><span id="line-19"></span>
+<span class="source-line-no">020</span><span id="line-20">/**</span>
+<span class="source-line-no">021</span><span id="line-21"> * Provides support
for native daemon invocation. Using</span>
+<span class="source-line-no">022</span><span id="line-22"> * a platform
dependant helper program, classes that implement the</span>
+<span class="source-line-no">023</span><span id="line-23"> * {@code Daemon}
interface can be initialized, started and</span>
+<span class="source-line-no">024</span><span id="line-24"> * stopped according
to the conventions of the underlying operating</span>
+<span class="source-line-no">025</span><span id="line-25"> * system.</span>
+<span class="source-line-no">026</span><span id="line-26"> * <p></span>
+<span class="source-line-no">027</span><span id="line-27"> * Implementors of
this interface must also provide a public constructor</span>
+<span class="source-line-no">028</span><span id="line-28"> * with no arguments
so that instances can be created in an automated</span>
+<span class="source-line-no">029</span><span id="line-29"> * fashion.</span>
+<span class="source-line-no">030</span><span id="line-30"> * </p></span>
+<span class="source-line-no">031</span><span id="line-31"> */</span>
+<span class="source-line-no">032</span><span id="line-32">public interface
Daemon</span>
+<span class="source-line-no">033</span><span id="line-33">{</span>
+<span class="source-line-no">034</span><span id="line-34"></span>
+<span class="source-line-no">035</span><span id="line-35"> /**</span>
+<span class="source-line-no">036</span><span id="line-36"> * Initializes
this {@code Daemon} instance.</span>
+<span class="source-line-no">037</span><span id="line-37"> *
<p></span>
+<span class="source-line-no">038</span><span id="line-38"> * This method
gets called once the JVM process is created and the</span>
+<span class="source-line-no">039</span><span id="line-39"> * {@code
Daemon} instance is created thru its empty public</span>
+<span class="source-line-no">040</span><span id="line-40"> *
constructor.</span>
+<span class="source-line-no">041</span><span id="line-41"> *
</p></span>
+<span class="source-line-no">042</span><span id="line-42"> *
<p></span>
+<span class="source-line-no">043</span><span id="line-43"> * Under
certain operating systems (typically UNIX based operating</span>
+<span class="source-line-no">044</span><span id="line-44"> * systems)
and if the native invocation framework is configured to do</span>
+<span class="source-line-no">045</span><span id="line-45"> * so, this
method might be called with <i>super-user</i> privileges.</span>
+<span class="source-line-no">046</span><span id="line-46"> *
</p></span>
+<span class="source-line-no">047</span><span id="line-47"> *
<p></span>
+<span class="source-line-no">048</span><span id="line-48"> * For
example, it might be wise to create {@code ServerSocket}</span>
+<span class="source-line-no">049</span><span id="line-49"> * instances
within the scope of this method, and perform all operations</span>
+<span class="source-line-no">050</span><span id="line-50"> * requiring
<i>super-user</i> privileges in the underlying operating</span>
+<span class="source-line-no">051</span><span id="line-51"> *
system.</span>
+<span class="source-line-no">052</span><span id="line-52"> *
</p></span>
+<span class="source-line-no">053</span><span id="line-53"> *
<p></span>
+<span class="source-line-no">054</span><span id="line-54"> * Apart from
set up and allocation of native resources, this method</span>
+<span class="source-line-no">055</span><span id="line-55"> * must not
start the actual operation of the {@code Daemon} (such</span>
+<span class="source-line-no">056</span><span id="line-56"> * as starting
threads calling the {@code ServerSocket.accept()}</span>
+<span class="source-line-no">057</span><span id="line-57"> * method) as
this would impose some serious security hazards. The</span>
+<span class="source-line-no">058</span><span id="line-58"> * start of
operation must be performed in the {@code start()}</span>
+<span class="source-line-no">059</span><span id="line-59"> *
method.</span>
+<span class="source-line-no">060</span><span id="line-60"> *
</p></span>
+<span class="source-line-no">061</span><span id="line-61"> *</span>
+<span class="source-line-no">062</span><span id="line-62"> * @param
context A {@code DaemonContext} object used to</span>
+<span class="source-line-no">063</span><span id="line-63"> * communicate
with the container.</span>
+<span class="source-line-no">064</span><span id="line-64"> * @throws
DaemonInitException An exception that prevented</span>
+<span class="source-line-no">065</span><span id="line-65"> *
initialization where you want to display a nice message to the user,</span>
+<span class="source-line-no">066</span><span id="line-66"> * rather than a
stack trace.</span>
+<span class="source-line-no">067</span><span id="line-67"> * @throws
Exception Any exception preventing a successful</span>
+<span class="source-line-no">068</span><span id="line-68"> *
initialization.</span>
+<span class="source-line-no">069</span><span id="line-69"> */</span>
+<span class="source-line-no">070</span><span id="line-70"> void
init(DaemonContext context)</span>
+<span class="source-line-no">071</span><span id="line-71"> throws
DaemonInitException, Exception;</span>
+<span class="source-line-no">072</span><span id="line-72"></span>
+<span class="source-line-no">073</span><span id="line-73"> /**</span>
+<span class="source-line-no">074</span><span id="line-74"> * Starts the
operation of this {@code Daemon} instance. This</span>
+<span class="source-line-no">075</span><span id="line-75"> * method is to
be invoked by the environment after the init()</span>
+<span class="source-line-no">076</span><span id="line-76"> * method has
been successfully invoked and possibly the security</span>
+<span class="source-line-no">077</span><span id="line-77"> * level of the
JVM has been dropped. Implementors of this</span>
+<span class="source-line-no">078</span><span id="line-78"> * method are
free to start any number of threads, but need to</span>
+<span class="source-line-no">079</span><span id="line-79"> * return
control after having done that to enable invocation of</span>
+<span class="source-line-no">080</span><span id="line-80"> * the
stop()-method.</span>
+<span class="source-line-no">081</span><span id="line-81"> *</span>
+<span class="source-line-no">082</span><span id="line-82"> * @throws
Exception If the start was not successful</span>
+<span class="source-line-no">083</span><span id="line-83"> */</span>
+<span class="source-line-no">084</span><span id="line-84"> void
start()</span>
+<span class="source-line-no">085</span><span id="line-85"> throws
Exception;</span>
+<span class="source-line-no">086</span><span id="line-86"></span>
+<span class="source-line-no">087</span><span id="line-87"> /**</span>
+<span class="source-line-no">088</span><span id="line-88"> * Stops the
operation of this {@code Daemon} instance. Note</span>
+<span class="source-line-no">089</span><span id="line-89"> * that the
proper place to free any allocated resources such as</span>
+<span class="source-line-no">090</span><span id="line-90"> * sockets or
file descriptors is in the destroy method, as the</span>
+<span class="source-line-no">091</span><span id="line-91"> * container may
restart the Daemon by calling start() after</span>
+<span class="source-line-no">092</span><span id="line-92"> * stop().</span>
+<span class="source-line-no">093</span><span id="line-93"> *</span>
+<span class="source-line-no">094</span><span id="line-94"> * @throws
Exception If the stop was not successful</span>
+<span class="source-line-no">095</span><span id="line-95"> */</span>
+<span class="source-line-no">096</span><span id="line-96"> void
stop()</span>
+<span class="source-line-no">097</span><span id="line-97"> throws
Exception;</span>
+<span class="source-line-no">098</span><span id="line-98"></span>
+<span class="source-line-no">099</span><span id="line-99"> /**</span>
+<span class="source-line-no">100</span><span id="line-100"> * Frees any
resources allocated by this daemon such as file</span>
+<span class="source-line-no">101</span><span id="line-101"> * descriptors
or sockets. This method gets called by the container</span>
+<span class="source-line-no">102</span><span id="line-102"> * after stop()
has been called, before the JVM exits. The Daemon</span>
+<span class="source-line-no">103</span><span id="line-103"> * can not be
restarted after this method has been called without a</span>
+<span class="source-line-no">104</span><span id="line-104"> * new call to
the init() method.</span>
+<span class="source-line-no">105</span><span id="line-105"> */</span>
+<span class="source-line-no">106</span><span id="line-106"> void
destroy();</span>
+<span class="source-line-no">107</span><span id="line-107">}</span>
+<span class="source-line-no">108</span><span id="line-108"></span>
@@ -176,5 +181,6 @@
</pre>
</div>
+</main>
</body>
</html>
\ No newline at end of file