jruby-activemq 5.5.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +6 -0
- data/LICENSE +619 -0
- data/README.md +15 -0
- data/Rakefile +34 -0
- data/apache-activemq-5.5.1/LICENSE +619 -0
- data/apache-activemq-5.5.1/NOTICE +85 -0
- data/apache-activemq-5.5.1/README.txt +63 -0
- data/apache-activemq-5.5.1/WebConsole-README.txt +42 -0
- data/apache-activemq-5.5.1/activemq-all-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/bin/activemq +653 -0
- data/apache-activemq-5.5.1/bin/activemq-admin +155 -0
- data/apache-activemq-5.5.1/bin/linux-x86-32/activemq +543 -0
- data/apache-activemq-5.5.1/bin/linux-x86-32/libwrapper.so +0 -0
- data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper +0 -0
- data/apache-activemq-5.5.1/bin/linux-x86-32/wrapper.conf +139 -0
- data/apache-activemq-5.5.1/bin/linux-x86-64/activemq +543 -0
- data/apache-activemq-5.5.1/bin/linux-x86-64/libwrapper.so +0 -0
- data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper +0 -0
- data/apache-activemq-5.5.1/bin/linux-x86-64/wrapper.conf +139 -0
- data/apache-activemq-5.5.1/bin/macosx/activemq +537 -0
- data/apache-activemq-5.5.1/bin/macosx/libwrapper.jnilib +0 -0
- data/apache-activemq-5.5.1/bin/macosx/wrapper +0 -0
- data/apache-activemq-5.5.1/bin/macosx/wrapper.conf +139 -0
- data/apache-activemq-5.5.1/bin/run.jar +0 -0
- data/apache-activemq-5.5.1/bin/wrapper.jar +0 -0
- data/apache-activemq-5.5.1/conf/activemq-command.xml +52 -0
- data/apache-activemq-5.5.1/conf/activemq-demo.xml +289 -0
- data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker1.xml +108 -0
- data/apache-activemq-5.5.1/conf/activemq-dynamic-network-broker2.xml +109 -0
- data/apache-activemq-5.5.1/conf/activemq-jdbc.xml +98 -0
- data/apache-activemq-5.5.1/conf/activemq-scalability.xml +77 -0
- data/apache-activemq-5.5.1/conf/activemq-security.xml +132 -0
- data/apache-activemq-5.5.1/conf/activemq-specjms.xml +118 -0
- data/apache-activemq-5.5.1/conf/activemq-static-network-broker1.xml +100 -0
- data/apache-activemq-5.5.1/conf/activemq-static-network-broker2.xml +100 -0
- data/apache-activemq-5.5.1/conf/activemq-stomp.xml +133 -0
- data/apache-activemq-5.5.1/conf/activemq-throughput.xml +82 -0
- data/apache-activemq-5.5.1/conf/activemq.xml +136 -0
- data/apache-activemq-5.5.1/conf/broker-localhost.cert +0 -0
- data/apache-activemq-5.5.1/conf/broker.ks +0 -0
- data/apache-activemq-5.5.1/conf/broker.ts +0 -0
- data/apache-activemq-5.5.1/conf/camel.xml +66 -0
- data/apache-activemq-5.5.1/conf/client.ks +0 -0
- data/apache-activemq-5.5.1/conf/client.ts +0 -0
- data/apache-activemq-5.5.1/conf/credentials-enc.properties +22 -0
- data/apache-activemq-5.5.1/conf/credentials.properties +22 -0
- data/apache-activemq-5.5.1/conf/jetty-realm.properties +20 -0
- data/apache-activemq-5.5.1/conf/jetty.xml +112 -0
- data/apache-activemq-5.5.1/conf/jmx.access +18 -0
- data/apache-activemq-5.5.1/conf/jmx.password +18 -0
- data/apache-activemq-5.5.1/conf/log4j.properties +75 -0
- data/apache-activemq-5.5.1/conf/logging.properties +25 -0
- data/apache-activemq-5.5.1/data/activemq.log +0 -0
- data/apache-activemq-5.5.1/docs/index.html +22 -0
- data/apache-activemq-5.5.1/example/build.xml +317 -0
- data/apache-activemq-5.5.1/example/conf/activemq.xml +41 -0
- data/apache-activemq-5.5.1/example/conf/log4j.properties +39 -0
- data/apache-activemq-5.5.1/example/conf/resin-web.xml +35 -0
- data/apache-activemq-5.5.1/example/conf/web.xml +40 -0
- data/apache-activemq-5.5.1/example/perfharness/perfharness-activemq.sh +49 -0
- data/apache-activemq-5.5.1/example/ruby/README.txt +27 -0
- data/apache-activemq-5.5.1/example/ruby/catstomp.rb +49 -0
- data/apache-activemq-5.5.1/example/ruby/listener.rb +51 -0
- data/apache-activemq-5.5.1/example/ruby/publisher.rb +67 -0
- data/apache-activemq-5.5.1/example/ruby/stompcat.rb +50 -0
- data/apache-activemq-5.5.1/example/src/CommandLineSupport.java +120 -0
- data/apache-activemq-5.5.1/example/src/ConsumerTool.java +353 -0
- data/apache-activemq-5.5.1/example/src/EmbeddedBroker.java +41 -0
- data/apache-activemq-5.5.1/example/src/Log4jJMSAppenderExample.java +70 -0
- data/apache-activemq-5.5.1/example/src/ProducerAndConsumerTool.java +51 -0
- data/apache-activemq-5.5.1/example/src/ProducerTool.java +247 -0
- data/apache-activemq-5.5.1/example/src/RequesterTool.java +257 -0
- data/apache-activemq-5.5.1/example/src/StompExample.java +59 -0
- data/apache-activemq-5.5.1/example/src/TopicListener.java +118 -0
- data/apache-activemq-5.5.1/example/src/TopicPublisher.java +205 -0
- data/apache-activemq-5.5.1/example/src/jndi.properties +17 -0
- data/apache-activemq-5.5.1/example/src/log4j-jms.properties +31 -0
- data/apache-activemq-5.5.1/example/transactions/README.txt +40 -0
- data/apache-activemq-5.5.1/example/transactions/build.xml +113 -0
- data/apache-activemq-5.5.1/example/transactions/src/Retailer.java +107 -0
- data/apache-activemq-5.5.1/example/transactions/src/Supplier.java +135 -0
- data/apache-activemq-5.5.1/example/transactions/src/TransactionsDemo.java +47 -0
- data/apache-activemq-5.5.1/example/transactions/src/Vendor.java +302 -0
- data/apache-activemq-5.5.1/lib/a.sh +3 -0
- data/apache-activemq-5.5.1/lib/activation-1.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-camel-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-console-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-core-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-jaas-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-protobuf-1.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/activemq-rar.txt +20 -0
- data/apache-activemq-5.5.1/lib/activemq-web-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/camel-core-2.7.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/camel-jetty-2.7.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/camel-jms-2.7.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/camel-spring-2.7.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/geronimo-jms_1.1_spec-1.1.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/jaxb-api-2.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/jaxb-impl-2.1.6.jar +0 -0
- data/apache-activemq-5.5.1/lib/jcl-over-slf4j-1.5.11.jar +0 -0
- data/apache-activemq-5.5.1/lib/kahadb-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activeio-core-3.1.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activemq-jmdns_1.0-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activemq-optional-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activemq-pool-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activemq-spring-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/activemq-xmpp-5.5.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-beanutils-1.6.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-codec-1.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-collections-3.2.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-dbcp-1.2.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-httpclient-3.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-lang-2.4.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-net-2.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/commons-pool-1.5.4.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/geronimo-j2ee-connector_1.5_spec-2.0.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/jasypt-1.7.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/jettison-1.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/josql-1.5.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/log4j-1.2.14.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/slf4j-log4j12-1.5.11.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-aop-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-asm-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-beans-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-context-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-core-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-expression-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-jms-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-oxm-tiger-1.5.8.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/spring-tx-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/stax2-api-3.0.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/velocity-1.6.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/woodstox-core-asl-4.0.7.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/xbean-spring-3.7.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/xpp3-1.1.4c.jar +0 -0
- data/apache-activemq-5.5.1/lib/optional/xstream-1.3.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/slf4j-api-1.5.11.jar +0 -0
- data/apache-activemq-5.5.1/lib/stax-1.2.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/stax-api-1.0.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/commons-management-1.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/core-3.1.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/geronimo-servlet_2.5_spec-1.2.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/jdom-1.0.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/jetty-all-server-7.1.6.v20100715.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/jetty-websocket-7.1.6.v20100715.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/jsp-2.1-glassfish-2.1.v20100127.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/jsp-api-2.1-glassfish-2.1.v20100127.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/rome-0.8.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/sitemesh-2.2.1.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/spring-web-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/lib/web/spring-webmvc-3.0.3.RELEASE.jar +0 -0
- data/apache-activemq-5.5.1/user-guide.html +119 -0
- data/apache-activemq-5.5.1/webapps/admin/404.html +137 -0
- data/apache-activemq-5.5.1/webapps/admin/500.html +138 -0
- data/apache-activemq-5.5.1/webapps/admin/META-INF/LICENSE +1026 -0
- data/apache-activemq-5.5.1/webapps/admin/META-INF/NOTICE +107 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/WebConsoleStarter.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CopyMessage.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateDestination.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/CreateSubscriber.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteDestination.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteJob.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteMessage.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/DeleteSubscriber.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/MoveMessage.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/PurgeDestination.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/controller/SendMessage.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$1.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter$2.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/filter/ApplicationContextFilter.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/classes/org/apache/activemq/web/handler/BindingBeanNameUrlHandlerMapping.class +0 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/decorators.xml +30 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/dispatcher-servlet.xml +62 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/headertags.jspf +21 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/jspf/old.jspf +21 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/checkbox.tag +18 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/forEachMapEntry.tag +29 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/option.tag +20 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/short.tag +29 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/text.tag +30 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/tooltip.tag +29 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/form/uri.tag +18 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachConnection.tag +35 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/forEachMessage.tag +34 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/formatTimestamp.tag +29 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/tags/jms/persistent.tag +27 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/web.xml +187 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-default.xml +26 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-embedded.xml +45 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-invm.xml +41 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-jndi.xml +39 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-properties.xml +39 -0
- data/apache-activemq-5.5.1/webapps/admin/WEB-INF/webconsole-query.xml +25 -0
- data/apache-activemq-5.5.1/webapps/admin/browse.jsp +64 -0
- data/apache-activemq-5.5.1/webapps/admin/connection.jsp +138 -0
- data/apache-activemq-5.5.1/webapps/admin/connections.jsp +85 -0
- data/apache-activemq-5.5.1/webapps/admin/decorators/main.jsp +165 -0
- data/apache-activemq-5.5.1/webapps/admin/decorators/panel.jsp +31 -0
- data/apache-activemq-5.5.1/webapps/admin/decorators/printable.jsp +31 -0
- data/apache-activemq-5.5.1/webapps/admin/graph.jsp +67 -0
- data/apache-activemq-5.5.1/webapps/admin/images/activemq-logo.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/asf-logo.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/big-bullet.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/black-footer-bottom.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/black-footer-left.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/black-footer-right.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/bottom-red-bar.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/checker-bg.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/content-left.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/content-right.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/feed_atom.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/feed_rss.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/left-box-bottom.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/left-box-right.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/left-box-top.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/oval-arrow.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/right-box-bottom.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/right-box-left.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/right-box-top.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-gray.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/small-bullet-red.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/spacer.gif +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/top-red-bar.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/white-header-left.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/white-header-right.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/images/white-header-top.png +0 -0
- data/apache-activemq-5.5.1/webapps/admin/index.jsp +65 -0
- data/apache-activemq-5.5.1/webapps/admin/js/common.js +121 -0
- data/apache-activemq-5.5.1/webapps/admin/js/css.js +145 -0
- data/apache-activemq-5.5.1/webapps/admin/js/mochi/MochiKit.js +4804 -0
- data/apache-activemq-5.5.1/webapps/admin/js/mochi/__package__.js +14 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Base.js +332 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Canvas.js +707 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/Layout.js +588 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SVG.js +677 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetCanvas.js +281 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/SweetSVG.js +196 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/dummy.svg +15 -0
- data/apache-activemq-5.5.1/webapps/admin/js/plotkit/iecanvas.htc +389 -0
- data/apache-activemq-5.5.1/webapps/admin/js/prettify.js +1424 -0
- data/apache-activemq-5.5.1/webapps/admin/js/standardista-table-sorting.js +434 -0
- data/apache-activemq-5.5.1/webapps/admin/message.jsp +185 -0
- data/apache-activemq-5.5.1/webapps/admin/network.jsp +52 -0
- data/apache-activemq-5.5.1/webapps/admin/queueConsumers.jsp +79 -0
- data/apache-activemq-5.5.1/webapps/admin/queueGraph.jsp +68 -0
- data/apache-activemq-5.5.1/webapps/admin/queues.jsp +78 -0
- data/apache-activemq-5.5.1/webapps/admin/scheduled.jsp +67 -0
- data/apache-activemq-5.5.1/webapps/admin/send.jsp +173 -0
- data/apache-activemq-5.5.1/webapps/admin/styles/prettify.css +44 -0
- data/apache-activemq-5.5.1/webapps/admin/styles/site.css +206 -0
- data/apache-activemq-5.5.1/webapps/admin/styles/sorttable.css +70 -0
- data/apache-activemq-5.5.1/webapps/admin/styles/type-settings.css +177 -0
- data/apache-activemq-5.5.1/webapps/admin/subscribers.jsp +158 -0
- data/apache-activemq-5.5.1/webapps/admin/test/dummy.jsp +52 -0
- data/apache-activemq-5.5.1/webapps/admin/test/index.jsp +84 -0
- data/apache-activemq-5.5.1/webapps/admin/test/systemProperties.jsp +53 -0
- data/apache-activemq-5.5.1/webapps/admin/topics.jsp +66 -0
- data/apache-activemq-5.5.1/webapps/admin/xml/queues.jsp +34 -0
- data/apache-activemq-5.5.1/webapps/admin/xml/topics.jsp +29 -0
- data/apache-activemq-5.5.1/webapps/demo/META-INF/LICENSE +494 -0
- data/apache-activemq-5.5.1/webapps/demo/META-INF/NOTICE +82 -0
- data/apache-activemq-5.5.1/webapps/demo/WEB-INF/web.xml +111 -0
- data/apache-activemq-5.5.1/webapps/demo/chat.css +76 -0
- data/apache-activemq-5.5.1/webapps/demo/chat.html +219 -0
- data/apache-activemq-5.5.1/webapps/demo/index.html +181 -0
- data/apache-activemq-5.5.1/webapps/demo/js/amq.js +307 -0
- data/apache-activemq-5.5.1/webapps/demo/js/amq_dojo_adapter.js +84 -0
- data/apache-activemq-5.5.1/webapps/demo/js/amq_jquery_adapter.js +88 -0
- data/apache-activemq-5.5.1/webapps/demo/js/amq_prototype_adapter.js +84 -0
- data/apache-activemq-5.5.1/webapps/demo/js/chat.js +209 -0
- data/apache-activemq-5.5.1/webapps/demo/js/dojo.js +16 -0
- data/apache-activemq-5.5.1/webapps/demo/js/jquery-1.4.2.min.js +154 -0
- data/apache-activemq-5.5.1/webapps/demo/js/prototype.js +4874 -0
- data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.html +87 -0
- data/apache-activemq-5.5.1/webapps/demo/portfolio/portfolio.js +91 -0
- data/apache-activemq-5.5.1/webapps/demo/sandbox/index.html +31 -0
- data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.html +93 -0
- data/apache-activemq-5.5.1/webapps/demo/sandbox/portfolio.js +49 -0
- data/apache-activemq-5.5.1/webapps/demo/sandbox/util.js +52 -0
- data/apache-activemq-5.5.1/webapps/demo/sandbox/webmq.js +149 -0
- data/apache-activemq-5.5.1/webapps/demo/send.html +51 -0
- data/apache-activemq-5.5.1/webapps/demo/style.css +440 -0
- data/apache-activemq-5.5.1/webapps/demo/test/amq_test.html +311 -0
- data/apache-activemq-5.5.1/webapps/demo/test/assets/README +4 -0
- data/apache-activemq-5.5.1/webapps/demo/test/assets/jsunittest.js +1017 -0
- data/apache-activemq-5.5.1/webapps/demo/test/assets/unittest.css +54 -0
- data/apache-activemq-5.5.1/webapps/favicon.ico +0 -0
- data/apache-activemq-5.5.1/webapps/fileserver/META-INF/LICENSE +203 -0
- data/apache-activemq-5.5.1/webapps/fileserver/META-INF/NOTICE +5 -0
- data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter$GuardedHttpServletRequest.class +0 -0
- data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/FilenameGuardFilter.class +0 -0
- data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/IOHelper.class +0 -0
- data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/classes/org/apache/activemq/util/RestFilter.class +0 -0
- data/apache-activemq-5.5.1/webapps/fileserver/WEB-INF/web.xml +56 -0
- data/apache-activemq-5.5.1/webapps/fileserver/index.html +30 -0
- data/apache-activemq-5.5.1/webapps/index.html +145 -0
- data/apache-activemq-5.5.1/webapps/styles/site.css +206 -0
- data/apache-activemq-5.5.1/webapps/styles/type-settings.css +177 -0
- data/lib/activemq.rb +11 -0
- metadata +382 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
|
2
|
+
<%--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
--%>
|
18
|
+
<p>
|
19
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
20
|
+
<tr>
|
21
|
+
<th class="panelTitle">
|
22
|
+
<decorator:title default="Unknown panel" />
|
23
|
+
</th>
|
24
|
+
</tr>
|
25
|
+
<tr>
|
26
|
+
<td class="panelBody">
|
27
|
+
<decorator:body />
|
28
|
+
</td>
|
29
|
+
</tr>
|
30
|
+
</table>
|
31
|
+
</p>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
|
2
|
+
<%--
|
3
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
4
|
+
contributor license agreements. See the NOTICE file distributed with
|
5
|
+
this work for additional information regarding copyright ownership.
|
6
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
7
|
+
(the "License"); you may not use this file except in compliance with
|
8
|
+
the License. You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
--%>
|
18
|
+
|
19
|
+
<html>
|
20
|
+
<head>
|
21
|
+
<title><decorator:title default="Welcome!" /></title>
|
22
|
+
<decorator:head />
|
23
|
+
</head>
|
24
|
+
|
25
|
+
<body onload="window.print();">
|
26
|
+
Printed on <%=new java.util.Date()%>.<br/>
|
27
|
+
<hr noshade="noshade" size="1"/>
|
28
|
+
<br/>
|
29
|
+
<decorator:body />
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<%--
|
2
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
contributor license agreements. See the NOTICE file distributed with
|
4
|
+
this work for additional information regarding copyright ownership.
|
5
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
(the "License"); you may not use this file except in compliance with
|
7
|
+
the License. You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
--%>
|
17
|
+
<html>
|
18
|
+
<head>
|
19
|
+
<title>Browse ${requestContext.queueBrowser.JMSDestination}</title>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
|
23
|
+
<h2>Browse ${requestContext.queueBrowser.JMSDestination}</h2>
|
24
|
+
|
25
|
+
<table id="messages" class="sortable autostripe">
|
26
|
+
<thead>
|
27
|
+
<tr>
|
28
|
+
<th>Message ID</th>
|
29
|
+
<th>Correlation ID</th>
|
30
|
+
<th>Persistence</th>
|
31
|
+
<th>Priority</th>
|
32
|
+
<th>Redelivered</th>
|
33
|
+
<th>Reply To</th>
|
34
|
+
<th>Timestamp</th>
|
35
|
+
<th>Type</th>
|
36
|
+
<th>Operations</th>
|
37
|
+
</tr>
|
38
|
+
</thead>
|
39
|
+
<tbody>
|
40
|
+
<%--
|
41
|
+
<c:forEach items="${requestContext.queueBrowser.browser.enumeration}" var="row">
|
42
|
+
---%>
|
43
|
+
<jms:forEachMessage queueBrowser="${requestContext.queueBrowser.browser}" var="row">
|
44
|
+
<tr>
|
45
|
+
<td><a href="message.jsp?id=${row.JMSMessageID}" title="${row.JMSDestination}">${row.JMSMessageID}</a></td>
|
46
|
+
<td>${row.JMSCorrelationID}</td>
|
47
|
+
<td><jms:persistent message="${row}"/></td>
|
48
|
+
<td>${row.JMSPriority}</td>
|
49
|
+
<td>${row.JMSRedelivered}</td>
|
50
|
+
<td>${row.JMSReplyTo}</td>
|
51
|
+
<td>${row.JMSTimestamp}</td>
|
52
|
+
<td>${row.JMSType}</td>
|
53
|
+
<td>
|
54
|
+
<a href="deleteDestination.action?destination=${row.JMSMessageID}&secret=<c:out value='${sessionScope["secret"]}'/>">Delete</a>
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
</jms:forEachMessage>
|
58
|
+
<%--
|
59
|
+
</c:forEach>
|
60
|
+
--%>
|
61
|
+
</tbody>
|
62
|
+
</table>
|
63
|
+
|
64
|
+
|
65
|
+
</body>
|
66
|
+
</html>
|
67
|
+
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,65 @@
|
|
1
|
+
<%--
|
2
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
3
|
+
contributor license agreements. See the NOTICE file distributed with
|
4
|
+
this work for additional information regarding copyright ownership.
|
5
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
6
|
+
(the "License"); you may not use this file except in compliance with
|
7
|
+
the License. You may obtain a copy of the License at
|
8
|
+
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
See the License for the specific language governing permissions and
|
15
|
+
limitations under the License.
|
16
|
+
--%>
|
17
|
+
<html>
|
18
|
+
<head>
|
19
|
+
<title>ActiveMQ Console</title>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
|
23
|
+
<h2>Welcome!</h2>
|
24
|
+
|
25
|
+
<p>
|
26
|
+
Welcome to the ActiveMQ Console of <b>${requestContext.brokerQuery.brokerName}</b> (${requestContext.brokerQuery.brokerAdmin.brokerId})
|
27
|
+
</p>
|
28
|
+
|
29
|
+
<p>
|
30
|
+
You can find more information about ActiveMQ on the <a href="http://activemq.apache.org/">Apache ActiveMQ Site</a>
|
31
|
+
</p>
|
32
|
+
|
33
|
+
<h2>Broker</h2>
|
34
|
+
|
35
|
+
|
36
|
+
<table>
|
37
|
+
<tr>
|
38
|
+
<td>Name</td>
|
39
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.brokerName}</b></td>
|
40
|
+
</tr>
|
41
|
+
<tr>
|
42
|
+
<td>Version</td>
|
43
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.brokerVersion}</b></td>
|
44
|
+
</tr>
|
45
|
+
<tr>
|
46
|
+
<td>ID</td>
|
47
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.brokerId}</b></td>
|
48
|
+
</tr>
|
49
|
+
<tr>
|
50
|
+
<td>Store percent used</td>
|
51
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.storePercentUsage}</b></td>
|
52
|
+
</tr>
|
53
|
+
<tr>
|
54
|
+
<td>Memory percent used</td>
|
55
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.memoryPercentUsage}</b></td>
|
56
|
+
</tr>
|
57
|
+
<tr>
|
58
|
+
<td>Temp percent used</td>
|
59
|
+
<td><b>${requestContext.brokerQuery.brokerAdmin.tempPercentUsage}</b></td>
|
60
|
+
</tr>
|
61
|
+
</table>
|
62
|
+
|
63
|
+
</body>
|
64
|
+
</html>
|
65
|
+
|
@@ -0,0 +1,121 @@
|
|
1
|
+
/**
|
2
|
+
* This software is licensed under the Creative Commons Licence 2.5
|
3
|
+
* http://creativecommons.org/licenses/by/2.5/
|
4
|
+
*
|
5
|
+
* addEvent written by Dean Edwards, 2005
|
6
|
+
* with input from Tino Zijdel
|
7
|
+
*
|
8
|
+
* http://dean.edwards.name/weblog/2005/10/add-event/
|
9
|
+
**/
|
10
|
+
function addEvent(element, type, handler) {
|
11
|
+
// assign each event handler a unique ID
|
12
|
+
if (!handler.$$guid) handler.$$guid = addEvent.guid++;
|
13
|
+
// create a hash table of event types for the element
|
14
|
+
if (!element.events) element.events = {};
|
15
|
+
// create a hash table of event handlers for each element/event pair
|
16
|
+
var handlers = element.events[type];
|
17
|
+
if (!handlers) {
|
18
|
+
handlers = element.events[type] = {};
|
19
|
+
// store the existing event handler (if there is one)
|
20
|
+
if (element["on" + type]) {
|
21
|
+
handlers[0] = element["on" + type];
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// store the event handler in the hash table
|
25
|
+
handlers[handler.$$guid] = handler;
|
26
|
+
// assign a global event handler to do all the work
|
27
|
+
element["on" + type] = handleEvent;
|
28
|
+
};
|
29
|
+
// a counter used to create unique IDs
|
30
|
+
addEvent.guid = 1;
|
31
|
+
|
32
|
+
function removeEvent(element, type, handler) {
|
33
|
+
// delete the event handler from the hash table
|
34
|
+
if (element.events && element.events[type]) {
|
35
|
+
delete element.events[type][handler.$$guid];
|
36
|
+
}
|
37
|
+
};
|
38
|
+
|
39
|
+
function handleEvent(event) {
|
40
|
+
var returnValue = true;
|
41
|
+
// grab the event object (IE uses a global event object)
|
42
|
+
event = event || fixEvent(window.event);
|
43
|
+
// get a reference to the hash table of event handlers
|
44
|
+
var handlers = this.events[event.type];
|
45
|
+
// execute each event handler
|
46
|
+
for (var i in handlers) {
|
47
|
+
this.$$handleEvent = handlers[i];
|
48
|
+
if (this.$$handleEvent(event) === false) {
|
49
|
+
returnValue = false;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
return returnValue;
|
53
|
+
};
|
54
|
+
|
55
|
+
function fixEvent(event) {
|
56
|
+
// add W3C standard event methods
|
57
|
+
event.preventDefault = fixEvent.preventDefault;
|
58
|
+
event.stopPropagation = fixEvent.stopPropagation;
|
59
|
+
return event;
|
60
|
+
};
|
61
|
+
fixEvent.preventDefault = function() {
|
62
|
+
this.returnValue = false;
|
63
|
+
};
|
64
|
+
fixEvent.stopPropagation = function() {
|
65
|
+
this.cancelBubble = true;
|
66
|
+
};
|
67
|
+
|
68
|
+
// end from Dean Edwards
|
69
|
+
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Creates an Element for insertion into the DOM tree.
|
73
|
+
* From http://simon.incutio.com/archive/2003/06/15/javascriptWithXML
|
74
|
+
*
|
75
|
+
* @param element the element type to be created.
|
76
|
+
* e.g. ul (no angle brackets)
|
77
|
+
**/
|
78
|
+
function createElement(element) {
|
79
|
+
if (typeof document.createElementNS != 'undefined') {
|
80
|
+
return document.createElementNS('http://www.w3.org/1999/xhtml', element);
|
81
|
+
}
|
82
|
+
if (typeof document.createElement != 'undefined') {
|
83
|
+
return document.createElement(element);
|
84
|
+
}
|
85
|
+
return false;
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* "targ" is the element which caused this function to be called
|
90
|
+
* from http://www.quirksmode.org/js/events_properties.html
|
91
|
+
**/
|
92
|
+
function getEventTarget(e) {
|
93
|
+
var targ;
|
94
|
+
if (!e) {
|
95
|
+
e = window.event;
|
96
|
+
}
|
97
|
+
if (e.target) {
|
98
|
+
targ = e.target;
|
99
|
+
} else if (e.srcElement) {
|
100
|
+
targ = e.srcElement;
|
101
|
+
}
|
102
|
+
if (targ.nodeType == 3) { // defeat Safari bug
|
103
|
+
targ = targ.parentNode;
|
104
|
+
}
|
105
|
+
|
106
|
+
return targ;
|
107
|
+
}
|
108
|
+
|
109
|
+
function confirmAction(id, url) {
|
110
|
+
//TODO i18n messages
|
111
|
+
var select = document.getElementById(id);
|
112
|
+
var selectedIndex = select.selectedIndex;
|
113
|
+
if (select.selectedIndex == 0) {
|
114
|
+
alert("Please select a value");
|
115
|
+
return;
|
116
|
+
}
|
117
|
+
var value = select.options[selectedIndex].value;
|
118
|
+
url = url.replace(/%target%/gi, value);
|
119
|
+
if (confirm("Are you sure?"))
|
120
|
+
location.href=url;
|
121
|
+
}
|
@@ -0,0 +1,145 @@
|
|
1
|
+
/**
|
2
|
+
* Written by Neil Crosby.
|
3
|
+
* http://www.workingwith.me.uk/
|
4
|
+
*
|
5
|
+
* Use this wherever you want, but please keep this comment at the top of this file.
|
6
|
+
*
|
7
|
+
* Copyright (c) 2006 Neil Crosby
|
8
|
+
*
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
10
|
+
* of this software and associated documentation files (the "Software"), to deal
|
11
|
+
* in the Software without restriction, including without limitation the rights
|
12
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
13
|
+
* copies of the Software, and to permit persons to whom the Software is
|
14
|
+
* furnished to do so, subject to the following conditions:
|
15
|
+
*
|
16
|
+
* The above copyright notice and this permission notice shall be included in
|
17
|
+
* all copies or substantial portions of the Software.
|
18
|
+
*
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25
|
+
* SOFTWARE.
|
26
|
+
**/
|
27
|
+
var css = {
|
28
|
+
/**
|
29
|
+
* Returns an array containing references to all elements
|
30
|
+
* of a given tag type within a certain node which have a given class
|
31
|
+
*
|
32
|
+
* @param node the node to start from
|
33
|
+
* (e.g. document,
|
34
|
+
* getElementById('whateverStartpointYouWant')
|
35
|
+
* )
|
36
|
+
* @param searchClass the class we're wanting
|
37
|
+
* (e.g. 'some_class')
|
38
|
+
* @param tag the tag that the found elements are allowed to be
|
39
|
+
* (e.g. '*', 'div', 'li')
|
40
|
+
**/
|
41
|
+
getElementsByClass : function(node, searchClass, tag) {
|
42
|
+
var classElements = new Array();
|
43
|
+
var els = node.getElementsByTagName(tag);
|
44
|
+
var elsLen = els.length;
|
45
|
+
var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
|
46
|
+
|
47
|
+
|
48
|
+
for (var i = 0, j = 0; i < elsLen; i++) {
|
49
|
+
if (this.elementHasClass(els[i], searchClass) ) {
|
50
|
+
classElements[j] = els[i];
|
51
|
+
j++;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
return classElements;
|
55
|
+
},
|
56
|
+
|
57
|
+
|
58
|
+
/**
|
59
|
+
* PRIVATE. Returns an array containing all the classes applied to this
|
60
|
+
* element.
|
61
|
+
*
|
62
|
+
* Used internally by elementHasClass(), addClassToElement() and
|
63
|
+
* removeClassFromElement().
|
64
|
+
**/
|
65
|
+
privateGetClassArray: function(el) {
|
66
|
+
return el.className.split(' ');
|
67
|
+
},
|
68
|
+
|
69
|
+
/**
|
70
|
+
* PRIVATE. Creates a string from an array of class names which can be used
|
71
|
+
* by the className function.
|
72
|
+
*
|
73
|
+
* Used internally by addClassToElement().
|
74
|
+
**/
|
75
|
+
privateCreateClassString: function(classArray) {
|
76
|
+
return classArray.join(' ');
|
77
|
+
},
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Returns true if the given element has been assigned the given class.
|
81
|
+
**/
|
82
|
+
elementHasClass: function(el, classString) {
|
83
|
+
if (!el) {
|
84
|
+
return false;
|
85
|
+
}
|
86
|
+
|
87
|
+
var regex = new RegExp('\\b'+classString+'\\b');
|
88
|
+
if (el.className.match(regex)) {
|
89
|
+
return true;
|
90
|
+
}
|
91
|
+
|
92
|
+
return false;
|
93
|
+
},
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Adds classString to the classes assigned to the element with id equal to
|
97
|
+
* idString.
|
98
|
+
**/
|
99
|
+
addClassToId: function(idString, classString) {
|
100
|
+
this.addClassToElement(document.getElementById(idString), classString);
|
101
|
+
},
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Adds classString to the classes assigned to the given element.
|
105
|
+
* If the element already has the class which was to be added, then
|
106
|
+
* it is not added again.
|
107
|
+
**/
|
108
|
+
addClassToElement: function(el, classString) {
|
109
|
+
var classArray = this.privateGetClassArray(el);
|
110
|
+
|
111
|
+
if (this.elementHasClass(el, classString)) {
|
112
|
+
return; // already has element so don't need to add it
|
113
|
+
}
|
114
|
+
|
115
|
+
classArray.push(classString);
|
116
|
+
|
117
|
+
el.className = this.privateCreateClassString(classArray);
|
118
|
+
},
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Removes the given classString from the list of classes assigned to the
|
122
|
+
* element with id equal to idString
|
123
|
+
**/
|
124
|
+
removeClassFromId: function(idString, classString) {
|
125
|
+
this.removeClassFromElement(document.getElementById(idString), classString);
|
126
|
+
},
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Removes the given classString from the list of classes assigned to the
|
130
|
+
* given element. If the element has the same class assigned to it twice,
|
131
|
+
* then only the first instance of that class is removed.
|
132
|
+
**/
|
133
|
+
removeClassFromElement: function(el, classString) {
|
134
|
+
var classArray = this.privateGetClassArray(el);
|
135
|
+
|
136
|
+
for (x in classArray) {
|
137
|
+
if (classString == classArray[x]) {
|
138
|
+
classArray[x] = '';
|
139
|
+
break;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
el.className = this.privateCreateClassString(classArray);
|
144
|
+
}
|
145
|
+
}
|