You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-commits@incubator.apache.org by ma...@apache.org on 2006/07/25 04:42:46 UTC
svn commit: r425276 [1/12] - in
/incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src:
main/java/org/apache/myfaces/adfinternal/agent/
main/java/org/apache/myfaces/adfinternal/agent/parse/
main/java/org/apache/myfaces/adfi...
Author: matzew
Date: Mon Jul 24 21:42:41 2006
New Revision: 425276
URL: http://svn.apache.org/viewvc?rev=425276&view=rev
Log:
mr property spam strikes again....
Modified:
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactoryImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentNameUtil.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentUtil.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/CapabilitiesProvider.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/CapabilityKey.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/CapabilityMap.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/CapabilityValue.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/DefaultAgent.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/DeviceRepository.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/CapabilitiesDocument.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/CapabilitiesDocumentParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/CapabilitiesNode.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/CapabilitiesNodeParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/CapabilityDataDocumentParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/ComponentNodeParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/DeviceComponentNode.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/DeviceNode.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/DeviceNodeParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/IncludeNode.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/IncludeNodeParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/NameVersion.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/VersionId.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/parse/XMLConstants.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/bean/UIXEditableFacesBeanImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/bean/UIXFacesBeanImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/context/DialogServiceImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/context/PageFlowScopeProviderImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/context/PageResolverDefaultImpl.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/BaseConverter.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/ConvertException.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/GenericConverter.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/GenericConverterFactory.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/NumberConverter.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/convert/SqlConverter.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/el/Tokenizer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/facelets/AdfComponentHandler.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/facelets/AdfListenersTagRule.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/facelets/StringArrayPropertyTagRule.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/metadata/RegionMetadata.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/RenderKitDecorator.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/desktop/DesktopRenderKit.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/pda/PdaRenderKit.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PanelBoxRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/PdaPanelPageHeaderRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/SelectBooleanCheckboxRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/ShowDetailHeaderRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/ShowDetailItemRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/ShowDetailRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/table/TableUtils.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/core/xhtml/table/TreeUtils.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/renderkit/html/layout/ShowOneUtils.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/resource/CoreClassLoaderResourceLoader.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/taglib/ComponentRefTag.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/taglib/ValidatorTag.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/LinkRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/MenuListRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/ShowItemRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/ShowOneTabRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/SubTabBarRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/SubTabBarUtils.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/pda/TipRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/ui/laf/base/xhtml/PageNavigationPathRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/util/SubKeyMap.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/util/TokenCache.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/webapp/DispatchServletResponse.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/XMLValidityTestCase.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/application/NullViewHandler.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/application/TestInternalView.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/application/ViewHandlerImplTest.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/context/AdfFacesContextTest.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/context/TestPageFlowScopeProvider.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/context/TestPageResolver.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/el/TokenizerTest.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/metadata/RegionMetadataTest.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/BasicHtmlRenderKit.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/ComponentDefinition.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/CoreRenderKitPerf.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/FacesConfigInfo.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/FacesConfigParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/FastRenderer.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/FastRenderer2.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/GatherContent.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MAdfFacesContext.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MApplication.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MPropertyResolver.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MRenderKitFactory.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MValueBinding.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/MViewHandler.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/NullWriter.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/RenderKitPerfTestCase.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/TestScript.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/TestScriptParser.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/renderkit/testData/Person.java (contents, props changed)
incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/test/java/org/apache/myfaces/adfinternal/taglib/TLDTest.java (contents, props changed)
Modified: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java?rev=425276&r1=425275&r2=425276&view=diff
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java (original)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java Mon Jul 24 21:42:41 2006
@@ -13,427 +13,427 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.myfaces.adfinternal.agent;
-
-import org.apache.myfaces.adf.context.Agent;
-
-/**
- * Extension of public Agent interface. Defines constants/method for AdInternal use.
- * Keeping this Interace as is (from before), but extends the public
- * the current (internal) code base uses this heavily.
- *
- * @author The Oracle ADF Faces Team
- */
-public interface AdfFacesAgent extends Agent
-{
- static public final CapabilityKey CAP_DOM =
- CapabilityKey.getCapabilityKey("dom", true);
-
- static public final CapabilityKey CAP_XMLDOM =
- CapabilityKey.getCapabilityKey("-adfinternal-xmldom", true);
-
- static public final CapabilityKey CAP_ID =
- CapabilityKey.getCapabilityKey("-adfinternal-id", true);
-
- static public final CapabilityKey CAP_ACCESS_KEYS =
- CapabilityKey.getCapabilityKey("accessKeys", true);
-
- static public final CapabilityKey CAP_PARTIAL_RENDERING =
- CapabilityKey.getCapabilityKey("-adfinternal-partialRendering", true);
-
- static public final CapabilityKey CAP_DISABLED_FORM_ELEMENTS =
- CapabilityKey.getCapabilityKey("-adfinternal-disabledFormElements", true);
-
- static public final CapabilityKey CAP_READONLY_FORM_ELEMENTS =
- CapabilityKey.getCapabilityKey("-adfinternal-readonlyFormElements", true);
-
- static public final CapabilityKey CAP_AUTO_COMPLETE_FORM_ELEMENTS =
- CapabilityKey.getCapabilityKey("-adfinternal-autoCompleteFormElements", true);
-
- static public final CapabilityKey CAP_ADVANCED_BUTTONS =
- CapabilityKey.getCapabilityKey("-adfinternal-advancedButtons", true);
-
- static public final CapabilityKey CAP_WIDTH =
- CapabilityKey.getCapabilityKey("width", true);
-
- static public final CapabilityKey CAP_HEIGHT =
- CapabilityKey.getCapabilityKey("height", true);
-
- //
- // XHTML Modularization
- //
- static public final CapabilityKey CAP_TEXT_PRESENTATION =
- CapabilityKey.getCapabilityKey("textPresentation", true);
-
- static public final CapabilityKey CAP_ADVANCED_FORMS =
- CapabilityKey.getCapabilityKey("-adfinternal-advancedForms", true);
-
- static public final CapabilityKey CAP_TABLES =
- CapabilityKey.getCapabilityKey("tables", true);
-
- static public final CapabilityKey CAP_FRAMES =
- CapabilityKey.getCapabilityKey("frames", true);
-
- static public final CapabilityKey CAP_TARGET =
- CapabilityKey.getCapabilityKey("-adfinternal-target", true);
-
- static public final CapabilityKey CAP_IFRAMES =
- CapabilityKey.getCapabilityKey("iframes", true);
-
- static public final CapabilityKey CAP_INTRINSIC_EVENTS =
- CapabilityKey.getCapabilityKey("-adfinternal-intrinsicEvents", true);
-
- static public final CapabilityKey CAP_STYLE_ATTRIBUTES =
- CapabilityKey.getCapabilityKey("-adfinternal-styleAttributes", true);
-
- static public final CapabilityKey CAP_NAME_IDENTIFICATION =
- CapabilityKey.getCapabilityKey("-adfinternal-nameIdentification", true);
-
- static public final CapabilityKey CAP_FIELDSET =
- CapabilityKey.getCapabilityKey("-adfinternal-fieldset", true);
-
- /**
- * capability describing level of support for css selectors
- */
- static public final CapabilityKey CAP_CSS_SELECTORS =
- CapabilityKey.getCapabilityKey("-adfinternal-cssSelectors", true);
-
- /**
- * true if supports disabling wrapping
- */
- static public final CapabilityKey CAP_NOWRAP =
- CapabilityKey.getCapabilityKey("-adfinternal-nowrap", true);
-
- /**
- * true if supports vertical alignment
- */
- static public final CapabilityKey CAP_VALIGN =
- CapabilityKey.getCapabilityKey("-adfinternal-valign", true);
-
- /**
- * true if the alt key renders a tooltip for an image *
- */
- static public final CapabilityKey CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-altRendersTooltipOnImage", true);
-
- static public final CapabilityKey CAP_SCRIPTING_SPEED =
- CapabilityKey.getCapabilityKey("-adfinternal-scriptingSpeed", true);
-
-
- /**
- * true if multiple windows can be opened
- */
- static public final CapabilityKey CAP_MULTIPLE_WINDOWS =
- CapabilityKey.getCapabilityKey("-adfinternal-multipleWindows", true);
-
-
- // True if agent supports page navigation
- static public final CapabilityKey CAP_NAVIGATION =
- CapabilityKey.getCapabilityKey("-adfinternal-navigation", true);
-
- // True if agent supports editing
- static public final CapabilityKey CAP_EDITING =
- CapabilityKey.getCapabilityKey("-adfinternal-editing", true);
-
- // True if agent supports image stretching, ie. setting the img
- // width/height to a percentage.
- static public final CapabilityKey CAP_IMAGE_STRETCH =
- CapabilityKey.getCapabilityKey("-adfinternal-imageStretch", true);
-
- static public final CapabilityKey CAP_GIF_TYPE_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-gifImage", true);
-
- static public final CapabilityKey CAP_JPEG_TYPE_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-jpegImage", true);
-
- static public final CapabilityKey CAP_PNG_TYPE_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-pngImage", true);
-
- static public final CapabilityKey CAP_TRANSPARENT_PNG_TYPE_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-transparentPngImage", true);
-
- static public final CapabilityKey CAP_BMP_TYPE_IMAGE =
- CapabilityKey.getCapabilityKey("-adfinternal-bmpImage", true);
-
- static public final CapabilityKey CAP_SUPPORTS_DISABLED_OPTIONS = CapabilityKey
- .getCapabilityKey("-adfinternal-supportsDisabledOptions", true);
-
-
- static public final CapabilityKey CAP_IS_JDEV_VE = CapabilityKey
- .getCapabilityKey("-adfinternal-isJDevVE", true);
-
- static public final CapabilityKey CAP_IS_JDEV_JAVASCRIPT_VE = CapabilityKey
- .getCapabilityKey("-adfinternal-isJDevJavascriptVE", true);
-
- //
- // Values for CAP_DOM
- //
- static public Object DOM_CAP_NONE =
- CapabilityValue.getCapabilityValue (CAP_DOM, "none");
- static public Object DOM_CAP_FORM =
- CapabilityValue.getCapabilityValue (CAP_DOM, "form");
- static public Object DOM_CAP_LEVEL_1 =
- CapabilityValue.getCapabilityValue (CAP_DOM, "level1");
- static public Object DOM_CAP_LEVEL_2 =
- CapabilityValue.getCapabilityValue (CAP_DOM, "level2");
-
- //
- // Values for CAP_SCRIPTING_SPEED
- //
- static public Object SCRIPTING_SPEED_CAP_NONE =
- CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED, "none");
- static public Object SCRIPTING_SPEED_CAP_SLOW =
- CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED, "slow");
- static public Object SCRIPTING_SPEED_CAP_FAST =
- CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED,"fast");
-
- //
- // Values for CAP_TABLES
- //
- static public Object TABLES_CAP_BASIC =
- CapabilityValue.getCapabilityValue (CAP_TABLES, "basic");
- static public Object TABLES_CAP_ADVANCED_ATTRS =
- CapabilityValue.getCapabilityValue (CAP_TABLES, "advanced_attrs");
- static public Object TABLES_CAP_ADVANCED =
- CapabilityValue.getCapabilityValue (CAP_TABLES, "advanced");
-
- //
- // Values for CAP_STYLE_ATTRIBUTES
- //
- static public Object STYLES_NONE =
- CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "none");
- static public Object STYLES_INTERNAL =
- CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "internal");
- static public Object STYLES_EXTERNAL =
- CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "external");
-
- // Values for CAP_CSS_SELECTORS
- static public Object SELECTORS_NONE =
- CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "none");
- static public Object SELECTORS_SINGLE =
- CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "single");
- static public Object SELECTORS_MULTIPLE =
- CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "multiple");
-
- /**
- * Application constant for Desktop devices
- */
- static public final int TYPE_DESKTOP = 0;
-
- /**
- * Application constant for Phone-sized devices
- */
- static public final int TYPE_PHONE = 1;
-
- /**
- * Application constant for Palm-sized devices. Pocket-PC,
- * Palm
- */
- static public final int TYPE_PDA = 2;
-
- /**
- * Application constant for voice
- */
- static public final int TYPE_VOICE = 3;
-
-
-
- /**
- * Application constant for an entirely unknown application.
- */
- static public final int APPLICATION_UNKNOWN = 0;
-
- /**
- * Application constant for the Netscape Navigator browser.
- * Note that Netscape 6 is considered as Mozilla, since
- * its rendering engine is that of the Mozilla project.
- */
- static public final int APPLICATION_NETSCAPE = 1;
-
- /**
- * Application constant for the Microsoft Internet Explorer
- * browser.
- */
- static public final int APPLICATION_IEXPLORER = 2;
-
- /**
- * Application constant for browsers based on the Gecko Layout Engine,
- * eg: Mozilla, Netscape 7.0+
- */
- static public final int APPLICATION_GECKO = 3;
-
- /**
- * Application constant for the Mozilla browser, or browsers
- * based on it (like Netscape 6).
- * @deprecated since 2.2.0. Use {@link #APPLICATION_GECKO}.
- */
- static public final int APPLICATION_MOZILLA = APPLICATION_GECKO;
-
- /**
- * Application constant for Palm Web Clippings
- */
- static public final int APPLICATION_WEB_CLIPPING = 4;
-
- /**
- * Application constant for the ICE Browser
- */
- static public final int APPLICATION_ICE = 5;
-
- /**
- * Application constant for the Pixo Microbrowser
- */
- static public final int APPLICATION_PIXO = 6;
-
- /**
- * Application constant for a WML Microbrowser
- */
- static public final int APPLICATION_WML = 7;
-
- /**
- * Application constant for SimpleResult intermediate Form
- */
- static public final int APPLICATION_SIMPLE_RESULT = 8;
-
- /**
- * Application constant for iAS wireless (PTG) client
- */
- static public final int APPLICATION_PTG = 9;
-
- /**
- * Application constant for the NetFront browser.
- */
- static public final int APPLICATION_NET_FRONT = 10;
-
- /**
- * Application constant for the Safari browser.
- */
- static public final int APPLICATION_SAFARI = 11;
-
- /**
- * OS constant for an unknown operating system.
- */
- static public final int OS_UNKNOWN = 0;
-
- /**
- * OS constant for any Microsoft Windows version.
- */
- static public final int OS_WINDOWS = 1;
-
- /**
- * OS constant for Apple MacOS.
- */
- static public final int OS_MACOS = 2;
-
- /**
- * OS constant for any Linux version.
- */
- static public final int OS_LINUX = 3;
-
- /**
- * OS constant for any Solaris version.
- */
- static public final int OS_SOLARIS = 4;
-
- /**
- * OS constant for any Palm version.
- */
- static public final int OS_PALM = 5;
-
- /**
- * OS constant for any Windows Pocket PC
- */
- static public final int OS_PPC = 6;
-
-
-
- /**
- * Name Constant for Netfront agent
- */
- public static final String AGENT_NETFRONT = "netfront";
-
- /**
- * Name Constant for Netscape agent. Used only for Netscape versions that are not Gecko
- * based such as Netscape 4.7
- */
- public static final String AGENT_NETSCAPE = "netscape";
-
- /**
- * Name Constant for Palm Webpro agent
- * //@TODO: Check: Isn't webpro same as netfront access
- */
- public static final String AGENT_WEBPRO = "webpro";
-
- /**
- * Name constant for ICE browser agent
- */
- public static final String AGENT_ICE_BROWSER = "icebrowser";
-
- /**
- * Name Constant for Pixo agent
- * //@TODO: Check: Are we still supporting Pixo??
- */
- public static final String AGENT_PIXO = "pixo";
-
- /**
- * Name Constant for OracleAS Wireless.
- * //@TODO: Check: Do we still have to support this??
- */
- public static final String AGENT_PTG = "ptg";
-
- /**
- * Name Constant for Blazer agent
- */
- public static final String AGENT_BLAZER = "blazer";
-
- /**
- * Name Constant for Xiino agent
- */
- public static final String AGENT_XIINO = "xiino";
-
- /**
- * Name Constant for Palm Web clipping (Elaine) agent
- */
- public static final String AGENT_ELAINE = "elaine";
-
- /**
- * Returns the type of agent to which we're rendering. Currently,
- * only web browsers are understood.
- */
- public int getAgentType();
-
-
- /**
- * Returns the specific application to which we're rendering.
- * Returns APPLICATION_UNKNOWN is the application couldn't
- * be identified.
- */
- public int getAgentApplication();
-
-
- /**
- * Returns the major version number of the application, or 0
- * if a version number couldn't be identified.
- */
- public int getAgentMajorVersion();
-
-
- /**
- * Returns the full, unparsed version string. Returns null
- * if no version string could be identified.
- */
- public String getAgentVersion();
-
-
- /**
- * Returns the client operating system. Returns OS_UNKNOWN if the
- * operating system can't be identified.
- */
- public int getAgentOS();
-
- /**
- * Returns a capability of an AdfFacesAgent
- */
- public Object getCapability(CapabilityKey key);
-
- public Object clone();
-}
+package org.apache.myfaces.adfinternal.agent;
+
+import org.apache.myfaces.adf.context.Agent;
+
+/**
+ * Extension of public Agent interface. Defines constants/method for AdInternal use.
+ * Keeping this Interace as is (from before), but extends the public
+ * the current (internal) code base uses this heavily.
+ *
+ * @author The Oracle ADF Faces Team
+ */
+public interface AdfFacesAgent extends Agent
+{
+ static public final CapabilityKey CAP_DOM =
+ CapabilityKey.getCapabilityKey("dom", true);
+
+ static public final CapabilityKey CAP_XMLDOM =
+ CapabilityKey.getCapabilityKey("-adfinternal-xmldom", true);
+
+ static public final CapabilityKey CAP_ID =
+ CapabilityKey.getCapabilityKey("-adfinternal-id", true);
+
+ static public final CapabilityKey CAP_ACCESS_KEYS =
+ CapabilityKey.getCapabilityKey("accessKeys", true);
+
+ static public final CapabilityKey CAP_PARTIAL_RENDERING =
+ CapabilityKey.getCapabilityKey("-adfinternal-partialRendering", true);
+
+ static public final CapabilityKey CAP_DISABLED_FORM_ELEMENTS =
+ CapabilityKey.getCapabilityKey("-adfinternal-disabledFormElements", true);
+
+ static public final CapabilityKey CAP_READONLY_FORM_ELEMENTS =
+ CapabilityKey.getCapabilityKey("-adfinternal-readonlyFormElements", true);
+
+ static public final CapabilityKey CAP_AUTO_COMPLETE_FORM_ELEMENTS =
+ CapabilityKey.getCapabilityKey("-adfinternal-autoCompleteFormElements", true);
+
+ static public final CapabilityKey CAP_ADVANCED_BUTTONS =
+ CapabilityKey.getCapabilityKey("-adfinternal-advancedButtons", true);
+
+ static public final CapabilityKey CAP_WIDTH =
+ CapabilityKey.getCapabilityKey("width", true);
+
+ static public final CapabilityKey CAP_HEIGHT =
+ CapabilityKey.getCapabilityKey("height", true);
+
+ //
+ // XHTML Modularization
+ //
+ static public final CapabilityKey CAP_TEXT_PRESENTATION =
+ CapabilityKey.getCapabilityKey("textPresentation", true);
+
+ static public final CapabilityKey CAP_ADVANCED_FORMS =
+ CapabilityKey.getCapabilityKey("-adfinternal-advancedForms", true);
+
+ static public final CapabilityKey CAP_TABLES =
+ CapabilityKey.getCapabilityKey("tables", true);
+
+ static public final CapabilityKey CAP_FRAMES =
+ CapabilityKey.getCapabilityKey("frames", true);
+
+ static public final CapabilityKey CAP_TARGET =
+ CapabilityKey.getCapabilityKey("-adfinternal-target", true);
+
+ static public final CapabilityKey CAP_IFRAMES =
+ CapabilityKey.getCapabilityKey("iframes", true);
+
+ static public final CapabilityKey CAP_INTRINSIC_EVENTS =
+ CapabilityKey.getCapabilityKey("-adfinternal-intrinsicEvents", true);
+
+ static public final CapabilityKey CAP_STYLE_ATTRIBUTES =
+ CapabilityKey.getCapabilityKey("-adfinternal-styleAttributes", true);
+
+ static public final CapabilityKey CAP_NAME_IDENTIFICATION =
+ CapabilityKey.getCapabilityKey("-adfinternal-nameIdentification", true);
+
+ static public final CapabilityKey CAP_FIELDSET =
+ CapabilityKey.getCapabilityKey("-adfinternal-fieldset", true);
+
+ /**
+ * capability describing level of support for css selectors
+ */
+ static public final CapabilityKey CAP_CSS_SELECTORS =
+ CapabilityKey.getCapabilityKey("-adfinternal-cssSelectors", true);
+
+ /**
+ * true if supports disabling wrapping
+ */
+ static public final CapabilityKey CAP_NOWRAP =
+ CapabilityKey.getCapabilityKey("-adfinternal-nowrap", true);
+
+ /**
+ * true if supports vertical alignment
+ */
+ static public final CapabilityKey CAP_VALIGN =
+ CapabilityKey.getCapabilityKey("-adfinternal-valign", true);
+
+ /**
+ * true if the alt key renders a tooltip for an image *
+ */
+ static public final CapabilityKey CAP_ALT_RENDERS_TOOLTIP_ON_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-altRendersTooltipOnImage", true);
+
+ static public final CapabilityKey CAP_SCRIPTING_SPEED =
+ CapabilityKey.getCapabilityKey("-adfinternal-scriptingSpeed", true);
+
+
+ /**
+ * true if multiple windows can be opened
+ */
+ static public final CapabilityKey CAP_MULTIPLE_WINDOWS =
+ CapabilityKey.getCapabilityKey("-adfinternal-multipleWindows", true);
+
+
+ // True if agent supports page navigation
+ static public final CapabilityKey CAP_NAVIGATION =
+ CapabilityKey.getCapabilityKey("-adfinternal-navigation", true);
+
+ // True if agent supports editing
+ static public final CapabilityKey CAP_EDITING =
+ CapabilityKey.getCapabilityKey("-adfinternal-editing", true);
+
+ // True if agent supports image stretching, ie. setting the img
+ // width/height to a percentage.
+ static public final CapabilityKey CAP_IMAGE_STRETCH =
+ CapabilityKey.getCapabilityKey("-adfinternal-imageStretch", true);
+
+ static public final CapabilityKey CAP_GIF_TYPE_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-gifImage", true);
+
+ static public final CapabilityKey CAP_JPEG_TYPE_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-jpegImage", true);
+
+ static public final CapabilityKey CAP_PNG_TYPE_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-pngImage", true);
+
+ static public final CapabilityKey CAP_TRANSPARENT_PNG_TYPE_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-transparentPngImage", true);
+
+ static public final CapabilityKey CAP_BMP_TYPE_IMAGE =
+ CapabilityKey.getCapabilityKey("-adfinternal-bmpImage", true);
+
+ static public final CapabilityKey CAP_SUPPORTS_DISABLED_OPTIONS = CapabilityKey
+ .getCapabilityKey("-adfinternal-supportsDisabledOptions", true);
+
+
+ static public final CapabilityKey CAP_IS_JDEV_VE = CapabilityKey
+ .getCapabilityKey("-adfinternal-isJDevVE", true);
+
+ static public final CapabilityKey CAP_IS_JDEV_JAVASCRIPT_VE = CapabilityKey
+ .getCapabilityKey("-adfinternal-isJDevJavascriptVE", true);
+
+ //
+ // Values for CAP_DOM
+ //
+ static public Object DOM_CAP_NONE =
+ CapabilityValue.getCapabilityValue (CAP_DOM, "none");
+ static public Object DOM_CAP_FORM =
+ CapabilityValue.getCapabilityValue (CAP_DOM, "form");
+ static public Object DOM_CAP_LEVEL_1 =
+ CapabilityValue.getCapabilityValue (CAP_DOM, "level1");
+ static public Object DOM_CAP_LEVEL_2 =
+ CapabilityValue.getCapabilityValue (CAP_DOM, "level2");
+
+ //
+ // Values for CAP_SCRIPTING_SPEED
+ //
+ static public Object SCRIPTING_SPEED_CAP_NONE =
+ CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED, "none");
+ static public Object SCRIPTING_SPEED_CAP_SLOW =
+ CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED, "slow");
+ static public Object SCRIPTING_SPEED_CAP_FAST =
+ CapabilityValue.getCapabilityValue (CAP_SCRIPTING_SPEED,"fast");
+
+ //
+ // Values for CAP_TABLES
+ //
+ static public Object TABLES_CAP_BASIC =
+ CapabilityValue.getCapabilityValue (CAP_TABLES, "basic");
+ static public Object TABLES_CAP_ADVANCED_ATTRS =
+ CapabilityValue.getCapabilityValue (CAP_TABLES, "advanced_attrs");
+ static public Object TABLES_CAP_ADVANCED =
+ CapabilityValue.getCapabilityValue (CAP_TABLES, "advanced");
+
+ //
+ // Values for CAP_STYLE_ATTRIBUTES
+ //
+ static public Object STYLES_NONE =
+ CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "none");
+ static public Object STYLES_INTERNAL =
+ CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "internal");
+ static public Object STYLES_EXTERNAL =
+ CapabilityValue.getCapabilityValue (CAP_STYLE_ATTRIBUTES, "external");
+
+ // Values for CAP_CSS_SELECTORS
+ static public Object SELECTORS_NONE =
+ CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "none");
+ static public Object SELECTORS_SINGLE =
+ CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "single");
+ static public Object SELECTORS_MULTIPLE =
+ CapabilityValue.getCapabilityValue (CAP_CSS_SELECTORS, "multiple");
+
+ /**
+ * Application constant for Desktop devices
+ */
+ static public final int TYPE_DESKTOP = 0;
+
+ /**
+ * Application constant for Phone-sized devices
+ */
+ static public final int TYPE_PHONE = 1;
+
+ /**
+ * Application constant for Palm-sized devices. Pocket-PC,
+ * Palm
+ */
+ static public final int TYPE_PDA = 2;
+
+ /**
+ * Application constant for voice
+ */
+ static public final int TYPE_VOICE = 3;
+
+
+
+ /**
+ * Application constant for an entirely unknown application.
+ */
+ static public final int APPLICATION_UNKNOWN = 0;
+
+ /**
+ * Application constant for the Netscape Navigator browser.
+ * Note that Netscape 6 is considered as Mozilla, since
+ * its rendering engine is that of the Mozilla project.
+ */
+ static public final int APPLICATION_NETSCAPE = 1;
+
+ /**
+ * Application constant for the Microsoft Internet Explorer
+ * browser.
+ */
+ static public final int APPLICATION_IEXPLORER = 2;
+
+ /**
+ * Application constant for browsers based on the Gecko Layout Engine,
+ * eg: Mozilla, Netscape 7.0+
+ */
+ static public final int APPLICATION_GECKO = 3;
+
+ /**
+ * Application constant for the Mozilla browser, or browsers
+ * based on it (like Netscape 6).
+ * @deprecated since 2.2.0. Use {@link #APPLICATION_GECKO}.
+ */
+ static public final int APPLICATION_MOZILLA = APPLICATION_GECKO;
+
+ /**
+ * Application constant for Palm Web Clippings
+ */
+ static public final int APPLICATION_WEB_CLIPPING = 4;
+
+ /**
+ * Application constant for the ICE Browser
+ */
+ static public final int APPLICATION_ICE = 5;
+
+ /**
+ * Application constant for the Pixo Microbrowser
+ */
+ static public final int APPLICATION_PIXO = 6;
+
+ /**
+ * Application constant for a WML Microbrowser
+ */
+ static public final int APPLICATION_WML = 7;
+
+ /**
+ * Application constant for SimpleResult intermediate Form
+ */
+ static public final int APPLICATION_SIMPLE_RESULT = 8;
+
+ /**
+ * Application constant for iAS wireless (PTG) client
+ */
+ static public final int APPLICATION_PTG = 9;
+
+ /**
+ * Application constant for the NetFront browser.
+ */
+ static public final int APPLICATION_NET_FRONT = 10;
+
+ /**
+ * Application constant for the Safari browser.
+ */
+ static public final int APPLICATION_SAFARI = 11;
+
+ /**
+ * OS constant for an unknown operating system.
+ */
+ static public final int OS_UNKNOWN = 0;
+
+ /**
+ * OS constant for any Microsoft Windows version.
+ */
+ static public final int OS_WINDOWS = 1;
+
+ /**
+ * OS constant for Apple MacOS.
+ */
+ static public final int OS_MACOS = 2;
+
+ /**
+ * OS constant for any Linux version.
+ */
+ static public final int OS_LINUX = 3;
+
+ /**
+ * OS constant for any Solaris version.
+ */
+ static public final int OS_SOLARIS = 4;
+
+ /**
+ * OS constant for any Palm version.
+ */
+ static public final int OS_PALM = 5;
+
+ /**
+ * OS constant for any Windows Pocket PC
+ */
+ static public final int OS_PPC = 6;
+
+
+
+ /**
+ * Name Constant for Netfront agent
+ */
+ public static final String AGENT_NETFRONT = "netfront";
+
+ /**
+ * Name Constant for Netscape agent. Used only for Netscape versions that are not Gecko
+ * based such as Netscape 4.7
+ */
+ public static final String AGENT_NETSCAPE = "netscape";
+
+ /**
+ * Name Constant for Palm Webpro agent
+ * //@TODO: Check: Isn't webpro same as netfront access
+ */
+ public static final String AGENT_WEBPRO = "webpro";
+
+ /**
+ * Name constant for ICE browser agent
+ */
+ public static final String AGENT_ICE_BROWSER = "icebrowser";
+
+ /**
+ * Name Constant for Pixo agent
+ * //@TODO: Check: Are we still supporting Pixo??
+ */
+ public static final String AGENT_PIXO = "pixo";
+
+ /**
+ * Name Constant for OracleAS Wireless.
+ * //@TODO: Check: Do we still have to support this??
+ */
+ public static final String AGENT_PTG = "ptg";
+
+ /**
+ * Name Constant for Blazer agent
+ */
+ public static final String AGENT_BLAZER = "blazer";
+
+ /**
+ * Name Constant for Xiino agent
+ */
+ public static final String AGENT_XIINO = "xiino";
+
+ /**
+ * Name Constant for Palm Web clipping (Elaine) agent
+ */
+ public static final String AGENT_ELAINE = "elaine";
+
+ /**
+ * Returns the type of agent to which we're rendering. Currently,
+ * only web browsers are understood.
+ */
+ public int getAgentType();
+
+
+ /**
+ * Returns the specific application to which we're rendering.
+ * Returns APPLICATION_UNKNOWN is the application couldn't
+ * be identified.
+ */
+ public int getAgentApplication();
+
+
+ /**
+ * Returns the major version number of the application, or 0
+ * if a version number couldn't be identified.
+ */
+ public int getAgentMajorVersion();
+
+
+ /**
+ * Returns the full, unparsed version string. Returns null
+ * if no version string could be identified.
+ */
+ public String getAgentVersion();
+
+
+ /**
+ * Returns the client operating system. Returns OS_UNKNOWN if the
+ * operating system can't be identified.
+ */
+ public int getAgentOS();
+
+ /**
+ * Returns a capability of an AdfFacesAgent
+ */
+ public Object getCapability(CapabilityKey key);
+
+ public Object clone();
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgent.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java?rev=425276&r1=425275&r2=425276&view=diff
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java (original)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java Mon Jul 24 21:42:41 2006
@@ -13,389 +13,389 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.myfaces.adfinternal.agent;
-
-import org.apache.myfaces.adf.logging.ADFLogger;
-import org.apache.myfaces.adf.context.Agent;
-
-import java.net.URL;
-
-import java.util.List;
-import java.util.Map;
-
-import javax.faces.context.FacesContext;
-
-import org.apache.myfaces.adf.util.ClassLoaderUtils;
-
-/**
- * implementation that supports the AdfFacesAgent
- *
- */
-public class AdfFacesAgentImpl implements AdfFacesAgent, Cloneable
-{
-
- public AdfFacesAgentImpl(FacesContext context, Agent agent)
- {
- _delegate = agent;
- _initialize(context);
- }
-
-
- public AdfFacesAgentImpl(Agent agent)
- {
- this (null, agent);
- }
-
-
- /**
- * @return return the Type of Agent.
- * <br>E.g. desktop, pda, phone, voice
- */
- public Object getType()
- {
- return _delegate.getType();
- }
-
- /**
- * Returns the type of agent to which we're rendering. Currently,
- * only web browsers are understood.
- */
- public int getAgentType()
- {
- return _type;
- }
-
- /**
- * @return return the canonical name of the Agent. Return <code>null</code> if not available.
- * <br>E.g. gecko, ie, opera
- */
- public String getAgentName()
- {
- return _delegate.getAgentName();
- }
-
- /**
- * Returns the specific application to which we're rendering.
- * Returns APPLICATION_UNKNOWN is the application couldn't
- * be identified.
- */
- public int getAgentApplication()
- {
- return _application;
- }
-
- /**
- * @return return the version number of the Agent. Return <code>null</code> if not available.
- */
- public String getAgentVersion()
- {
- return _delegate.getAgentVersion();
- }
-
- /**
- * Returns the major version number of the application, or 0
- * if a version number couldn't be identified.
- */
- public int getAgentMajorVersion()
- {
- return _major;
- }
-
- /**
- * @return return the canonical name for the platform. Return <code>null</code> if not available.
- * <br>E.g ppc, series60
- */
- public String getPlatformName()
- {
- return _delegate.getPlatformName();
- }
-
- /**
- * @return return the version number for the platform. Return <code>null</code> if not available.
- */
- public String getPlatformVersion()
- {
- return _delegate.getPlatformVersion();
- }
-
- /**
- * @return Map of capability name and value for the current Agent.
- */
- public Map getCapabilities()
- {
- return _capMap;
- }
-
- /**
- * Returns the client operating system. Returns OS_UNKNOWN if the
- * operating system can't be identified.
- */
- public int getAgentOS()
- {
- return _os;
- }
-
- /**
- * @return return a canonical name for the Hardware make. Return <code>null</code> if not available.
- * <br>E.g nokia6600, nokia3650, sonyericssonP900 etc
- */
- public String getHardwareMakeModel()
- {
- return _delegate.getHardwareMakeModel();
- }
-
- /**
- * @param key
- * @return Agent's capability value for the key
- */
- public Object getCapability(CapabilityKey key)
- {
- return _capMap.getCapability(key);
- }
-
-
- public Object clone()
- {
- try
- {
- AdfFacesAgentImpl that = (AdfFacesAgentImpl) super.clone();
- that._capMap = (CapabilityMap) _capMap.clone();
- return that;
- }
- catch (CloneNotSupportedException cnse)
- {
- assert false;
- return null;
- }
- }
-
-
- public String toString()
- {
- StringBuffer buffer = new StringBuffer("Agent[");
- buffer.append(getType());
- buffer.append(',');
-
- String name = getAgentName();
-
- if (name != null)
- {
- buffer.append(name);
- }
- else
- {
- buffer.append("unknown");
- }
-
- String version = getAgentVersion();
-
- if (version != null)
- {
- buffer.append(' ');
- buffer.append(version);
- }
-
- buffer.append(',');
- name = getPlatformName();
-
- if (name != null)
- {
- buffer.append(name);
- }
- else
- {
- buffer.append("unknown");
- }
-
- buffer.append(']');
- version = getPlatformVersion();
-
- if (version != null)
- {
- buffer.append(' ');
- buffer.append(version);
- }
-
- return new String(buffer);
- }
-
- private void _initialize(FacesContext context)
- {
- _type = AgentNameUtil.getAgentType(getType());
- _application = AgentNameUtil.getAgent(getAgentName());
- _os = AgentNameUtil.getPlatform(getPlatformName());
-
- if (APPLICATION_GECKO == _application)
- _major = 1;
- else
- _major = _getMajorVersion(getAgentVersion());
-
- _capMap = _getCapabilityMap(context);
- Map requestCaps = _delegate.getCapabilities();
- if (requestCaps != null)
- {
- _capMap = _capMap.merge(requestCaps);
- }
- }
-
- /**
- * intialization must have happened beforre calling this methodb
- */
- private CapabilityMap _getCapabilityMap(FacesContext context)
- {
- CapabilityMap capMap = null;
- DeviceRepository repository = _getDeviceRepository(context);
-
- if (repository != null)
- {
- capMap = repository.getCapabilityMap(context, this);
- }
-
- if (capMap == null)
- {
- URL url = _getCapabilitiesFile();
- if (url == null)
- _LOG.severe ("Could not locate Capabilities document");
-
- CapabilitiesProvider capProvider =
- CapabilitiesProvider.getCapabilitiesProvider(url);
-
- capMap = capProvider.getCapabilities(this);
- }
-
- return capMap;
- }
-
-
- private synchronized static DeviceRepository
- _getDeviceRepository(FacesContext context)
- {
- if (!_deviceRepositoryLoaded)
- {
- {
- List<DeviceRepository> list = ClassLoaderUtils.getServices(_DEVICE_REPOSITORY_URL);
- _deviceRepository = list.isEmpty() ? null : list.get(0);
- _deviceRepositoryLoaded = true;
- }
- }
-
- return _deviceRepository;
- }
-
- private static URL _getCapabilitiesFile()
- {
- if (_capUrl != null) {
- return _capUrl;
- }
-
- URL path = null;
- synchronized (AdfFacesAgentImpl.class)
- {
- if (_capUrl != null)
- return _capUrl;
-
- //then try the class loader
- if (path == null)
- {
- ClassLoader loader = Thread.currentThread().getContextClassLoader();
- if (loader == null)
- loader = AdfFacesAgentImpl.class.getClassLoader();
- path = loader.getResource(_CAPABILITIES_FILE);
- }
-
- if (path == null)
- {
- _LOG.severe("Cannot resolve capabilities file");
- }
-
- _capUrl = path;
- return _capUrl;
- }
- }
-
- //Original UIX impl.
- //E.g a version string of 0.9.7 returns 0.9 and 1.9.7 returns 1.9
- static private int _getMajorVersion(String source)
- {
- double version = 0;
-
- if (source != null)
- {
- boolean hasDecimal = false;
- double divisor = 10.0;
-
- int sourceLength = source.length();
- int currIndex = 0;
-
- while (currIndex < sourceLength)
- {
- char currChar = source.charAt(currIndex);
-
- if ((currChar >= '0') && (currChar <= '9'))
- {
- double addValue = (currChar - '0');
-
- if (hasDecimal)
- {
- // handle digits to right of decimal
- addValue /= divisor;
- divisor = divisor * 10.0;
- }
- else
- {
- // handle digits to left of decimal
- version *= 10.0;
- }
-
- version += addValue;
- }
- else
- {
- if (!hasDecimal && (currChar == '.'))
- {
- // found decimal place
- hasDecimal = true;
- }
- else
- {
- break;
- }
- }
-
- // read next char
- currIndex++;
- }
- }
-
- return (int) version;
- }
-
- void __mergeCapabilities(Map capabilities)
- {
- _capMap = _capMap.merge(capabilities);
- }
-
- private static URL _capUrl;
-
- //@todo: Get this from the Configuration Object
- static final private String _CAPABILITIES_FILE = "META-INF/agent/capabilities.xml";
-
- static private final String _DEVICE_REPOSITORY_URL =
- "org.apache.myfaces.adfinternal.agent.DeviceRepository";
-
-
- static final private ADFLogger _LOG =
- ADFLogger.createADFLogger(AdfFacesAgentImpl.class);
-
- private static boolean _deviceRepositoryLoaded;
- private static DeviceRepository _deviceRepository;
-
- private Agent _delegate;
- private CapabilityMap _capMap;
- private int _type;
- private int _application;
- private int _os;
- private int _major;
-
-
-}
+package org.apache.myfaces.adfinternal.agent;
+
+import org.apache.myfaces.adf.logging.ADFLogger;
+import org.apache.myfaces.adf.context.Agent;
+
+import java.net.URL;
+
+import java.util.List;
+import java.util.Map;
+
+import javax.faces.context.FacesContext;
+
+import org.apache.myfaces.adf.util.ClassLoaderUtils;
+
+/**
+ * implementation that supports the AdfFacesAgent
+ *
+ */
+public class AdfFacesAgentImpl implements AdfFacesAgent, Cloneable
+{
+
+ public AdfFacesAgentImpl(FacesContext context, Agent agent)
+ {
+ _delegate = agent;
+ _initialize(context);
+ }
+
+
+ public AdfFacesAgentImpl(Agent agent)
+ {
+ this (null, agent);
+ }
+
+
+ /**
+ * @return return the Type of Agent.
+ * <br>E.g. desktop, pda, phone, voice
+ */
+ public Object getType()
+ {
+ return _delegate.getType();
+ }
+
+ /**
+ * Returns the type of agent to which we're rendering. Currently,
+ * only web browsers are understood.
+ */
+ public int getAgentType()
+ {
+ return _type;
+ }
+
+ /**
+ * @return return the canonical name of the Agent. Return <code>null</code> if not available.
+ * <br>E.g. gecko, ie, opera
+ */
+ public String getAgentName()
+ {
+ return _delegate.getAgentName();
+ }
+
+ /**
+ * Returns the specific application to which we're rendering.
+ * Returns APPLICATION_UNKNOWN is the application couldn't
+ * be identified.
+ */
+ public int getAgentApplication()
+ {
+ return _application;
+ }
+
+ /**
+ * @return return the version number of the Agent. Return <code>null</code> if not available.
+ */
+ public String getAgentVersion()
+ {
+ return _delegate.getAgentVersion();
+ }
+
+ /**
+ * Returns the major version number of the application, or 0
+ * if a version number couldn't be identified.
+ */
+ public int getAgentMajorVersion()
+ {
+ return _major;
+ }
+
+ /**
+ * @return return the canonical name for the platform. Return <code>null</code> if not available.
+ * <br>E.g ppc, series60
+ */
+ public String getPlatformName()
+ {
+ return _delegate.getPlatformName();
+ }
+
+ /**
+ * @return return the version number for the platform. Return <code>null</code> if not available.
+ */
+ public String getPlatformVersion()
+ {
+ return _delegate.getPlatformVersion();
+ }
+
+ /**
+ * @return Map of capability name and value for the current Agent.
+ */
+ public Map getCapabilities()
+ {
+ return _capMap;
+ }
+
+ /**
+ * Returns the client operating system. Returns OS_UNKNOWN if the
+ * operating system can't be identified.
+ */
+ public int getAgentOS()
+ {
+ return _os;
+ }
+
+ /**
+ * @return return a canonical name for the Hardware make. Return <code>null</code> if not available.
+ * <br>E.g nokia6600, nokia3650, sonyericssonP900 etc
+ */
+ public String getHardwareMakeModel()
+ {
+ return _delegate.getHardwareMakeModel();
+ }
+
+ /**
+ * @param key
+ * @return Agent's capability value for the key
+ */
+ public Object getCapability(CapabilityKey key)
+ {
+ return _capMap.getCapability(key);
+ }
+
+
+ public Object clone()
+ {
+ try
+ {
+ AdfFacesAgentImpl that = (AdfFacesAgentImpl) super.clone();
+ that._capMap = (CapabilityMap) _capMap.clone();
+ return that;
+ }
+ catch (CloneNotSupportedException cnse)
+ {
+ assert false;
+ return null;
+ }
+ }
+
+
+ public String toString()
+ {
+ StringBuffer buffer = new StringBuffer("Agent[");
+ buffer.append(getType());
+ buffer.append(',');
+
+ String name = getAgentName();
+
+ if (name != null)
+ {
+ buffer.append(name);
+ }
+ else
+ {
+ buffer.append("unknown");
+ }
+
+ String version = getAgentVersion();
+
+ if (version != null)
+ {
+ buffer.append(' ');
+ buffer.append(version);
+ }
+
+ buffer.append(',');
+ name = getPlatformName();
+
+ if (name != null)
+ {
+ buffer.append(name);
+ }
+ else
+ {
+ buffer.append("unknown");
+ }
+
+ buffer.append(']');
+ version = getPlatformVersion();
+
+ if (version != null)
+ {
+ buffer.append(' ');
+ buffer.append(version);
+ }
+
+ return new String(buffer);
+ }
+
+ private void _initialize(FacesContext context)
+ {
+ _type = AgentNameUtil.getAgentType(getType());
+ _application = AgentNameUtil.getAgent(getAgentName());
+ _os = AgentNameUtil.getPlatform(getPlatformName());
+
+ if (APPLICATION_GECKO == _application)
+ _major = 1;
+ else
+ _major = _getMajorVersion(getAgentVersion());
+
+ _capMap = _getCapabilityMap(context);
+ Map requestCaps = _delegate.getCapabilities();
+ if (requestCaps != null)
+ {
+ _capMap = _capMap.merge(requestCaps);
+ }
+ }
+
+ /**
+ * intialization must have happened beforre calling this methodb
+ */
+ private CapabilityMap _getCapabilityMap(FacesContext context)
+ {
+ CapabilityMap capMap = null;
+ DeviceRepository repository = _getDeviceRepository(context);
+
+ if (repository != null)
+ {
+ capMap = repository.getCapabilityMap(context, this);
+ }
+
+ if (capMap == null)
+ {
+ URL url = _getCapabilitiesFile();
+ if (url == null)
+ _LOG.severe ("Could not locate Capabilities document");
+
+ CapabilitiesProvider capProvider =
+ CapabilitiesProvider.getCapabilitiesProvider(url);
+
+ capMap = capProvider.getCapabilities(this);
+ }
+
+ return capMap;
+ }
+
+
+ private synchronized static DeviceRepository
+ _getDeviceRepository(FacesContext context)
+ {
+ if (!_deviceRepositoryLoaded)
+ {
+ {
+ List<DeviceRepository> list = ClassLoaderUtils.getServices(_DEVICE_REPOSITORY_URL);
+ _deviceRepository = list.isEmpty() ? null : list.get(0);
+ _deviceRepositoryLoaded = true;
+ }
+ }
+
+ return _deviceRepository;
+ }
+
+ private static URL _getCapabilitiesFile()
+ {
+ if (_capUrl != null) {
+ return _capUrl;
+ }
+
+ URL path = null;
+ synchronized (AdfFacesAgentImpl.class)
+ {
+ if (_capUrl != null)
+ return _capUrl;
+
+ //then try the class loader
+ if (path == null)
+ {
+ ClassLoader loader = Thread.currentThread().getContextClassLoader();
+ if (loader == null)
+ loader = AdfFacesAgentImpl.class.getClassLoader();
+ path = loader.getResource(_CAPABILITIES_FILE);
+ }
+
+ if (path == null)
+ {
+ _LOG.severe("Cannot resolve capabilities file");
+ }
+
+ _capUrl = path;
+ return _capUrl;
+ }
+ }
+
+ //Original UIX impl.
+ //E.g a version string of 0.9.7 returns 0.9 and 1.9.7 returns 1.9
+ static private int _getMajorVersion(String source)
+ {
+ double version = 0;
+
+ if (source != null)
+ {
+ boolean hasDecimal = false;
+ double divisor = 10.0;
+
+ int sourceLength = source.length();
+ int currIndex = 0;
+
+ while (currIndex < sourceLength)
+ {
+ char currChar = source.charAt(currIndex);
+
+ if ((currChar >= '0') && (currChar <= '9'))
+ {
+ double addValue = (currChar - '0');
+
+ if (hasDecimal)
+ {
+ // handle digits to right of decimal
+ addValue /= divisor;
+ divisor = divisor * 10.0;
+ }
+ else
+ {
+ // handle digits to left of decimal
+ version *= 10.0;
+ }
+
+ version += addValue;
+ }
+ else
+ {
+ if (!hasDecimal && (currChar == '.'))
+ {
+ // found decimal place
+ hasDecimal = true;
+ }
+ else
+ {
+ break;
+ }
+ }
+
+ // read next char
+ currIndex++;
+ }
+ }
+
+ return (int) version;
+ }
+
+ void __mergeCapabilities(Map capabilities)
+ {
+ _capMap = _capMap.merge(capabilities);
+ }
+
+ private static URL _capUrl;
+
+ //@todo: Get this from the Configuration Object
+ static final private String _CAPABILITIES_FILE = "META-INF/agent/capabilities.xml";
+
+ static private final String _DEVICE_REPOSITORY_URL =
+ "org.apache.myfaces.adfinternal.agent.DeviceRepository";
+
+
+ static final private ADFLogger _LOG =
+ ADFLogger.createADFLogger(AdfFacesAgentImpl.class);
+
+ private static boolean _deviceRepositoryLoaded;
+ private static DeviceRepository _deviceRepository;
+
+ private Agent _delegate;
+ private CapabilityMap _capMap;
+ private int _type;
+ private int _application;
+ private int _os;
+ private int _major;
+
+
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AdfFacesAgentImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java
URL: http://svn.apache.org/viewvc/incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java?rev=425276&r1=425275&r2=425276&view=diff
==============================================================================
--- incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java (original)
+++ incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java Mon Jul 24 21:42:41 2006
@@ -13,23 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.apache.myfaces.adfinternal.agent;
-
-import org.apache.myfaces.adf.context.Agent;
-
-import javax.faces.context.FacesContext;
-
-
-/**
- * Factory to create Agent. Allows implementations to plug in their own agent
- * detection, without having to override AdfFacesContext.
- * //@todo: Right now this not public API, but will be when adf faces cofiguration is sorted out
- */
-public interface AgentFactory
-{
- /**
- * @param facesContext
- * @return Agent for the current request/context
- */
- public Agent createAgent(FacesContext facesContext);
-}
+package org.apache.myfaces.adfinternal.agent;
+
+import org.apache.myfaces.adf.context.Agent;
+
+import javax.faces.context.FacesContext;
+
+
+/**
+ * Factory to create Agent. Allows implementations to plug in their own agent
+ * detection, without having to override AdfFacesContext.
+ * //@todo: Right now this not public API, but will be when adf faces cofiguration is sorted out
+ */
+public interface AgentFactory
+{
+ /**
+ * @param facesContext
+ * @return Agent for the current request/context
+ */
+ public Agent createAgent(FacesContext facesContext);
+}
Propchange: incubator/adffaces/branches/matzew-repackaging-trinidad/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/adfinternal/agent/AgentFactory.java
------------------------------------------------------------------------------
svn:eol-style = native