Package ariba.ui.aribaweb.util

Examples of ariba.ui.aribaweb.util.AWGenericException


            indexOfClassName = indexOfOpenComment + ClassComment.length();
        }
        if (indexOfOpenComment != -1) {
            int indexOfClosingComment = templateString.indexOf("-->", indexOfClassName);
            if (indexOfClosingComment == -1) {
                throw new AWGenericException("Missing closing comment when parsing class name from " + resource.url());
            }
            String className = templateString.substring(indexOfClassName, indexOfClosingComment).trim();
            componentClass = AWUtil.classForName(className);
        }
        return componentClass;
View Full Code Here


                                            componentDefinition = createComponentDefinitionForNameAndClass(componentName, componentClass);
                                            componentDefinition.setTemplateName(resource.relativePath());
                                            _componentDefinitionHashtable.put(componentName.intern(), componentDefinition);
                                        }
                                        else {
                                            throw new AWGenericException(getClass().getName() + ": invalid class specified for Classless component: " + componentClass.getName());
                                        }
                                    }
                                }
                            }
                            else if (AWComponent.ClassObject.isAssignableFrom(componentClass)) {
                                componentDefinition = createComponentDefinitionForNameAndClass(componentName, componentClass);
                                _componentDefinitionHashtable.put(componentName.intern(), componentDefinition);
                            }
                        }
                    }
                }
            }
        }
        else {
            throw new AWGenericException(getClass().getName() + ": null componentName not allowed.");
        }
        return componentDefinition;
    }
View Full Code Here

        return (AWBinding[])(AWUtil.concatenateArrays(superBindings, myBindings));
    }

    public boolean isKindOfClass (Class targetClass)
    {
        throw new AWGenericException("AWIncludeComponent.isKindOfClass not yet implemented.");
    }
View Full Code Here

    protected AWBindable lookupElementReference(AWComponent component)
    {
        String componentName = componentName(component);
        if (componentName == null) {
            throw new AWGenericException("AWIncludeComponent awcomponentName must not evaluate to null: " + _awcomponentName + " at component path: " + component.componentPath());
        }

        return (AWBindable) _elementReferences.get(componentName);
    }
View Full Code Here

                element = (AWBindable)elementClass.newInstance();
                element = (AWBindable)element.determineInstance(componentName, elementClass.getName(),
                                newBindingsHashtable, templateName(), lineNumber());
            }
            catch (IllegalAccessException illegalAccessException) {
                throw new AWGenericException(illegalAccessException);
            }
            catch (InstantiationException instantiationException) {
                String errorMessage = Fmt.S("Problem creating new instance of \"%s\" (%s) templateName: \"%s\" lineNumber: %s",
                                            componentName, elementClass.getName(),
                                            templateName(), String.valueOf(lineNumber()));
                throw new AWGenericException(errorMessage, instantiationException);
            }
        }
        return element;
    }
View Full Code Here

    }

    public void applyValues(AWRequestContext requestContext,
                                       AWComponent component)
    {
        throw new AWGenericException("AWFormRedirect: applyValues " +
            "should never be called since this page should never be cached.");
    }
View Full Code Here

    }

    public AWResponseGenerating invokeAction(AWRequestContext requestContext,
                                                        AWComponent component)
    {
        throw new AWGenericException("AWFormRedirect: invokeAction should " +
            "never be called since this page should never be cached.");
    }
View Full Code Here

    {
        String debugJavascriptUrl = null;
        if (((AWConcreteApplication)application()).allowsJavascriptUrls()) {
            debugJavascriptUrl = urlForResourceNamed(JSDebugWindowJavascriptFileName);
            if (debugJavascriptUrl == null) {
                throw new AWGenericException(getClass().getName() + ": unable to locate file named 'JSDebugWindowJavascriptFileName'");
            }
        }
        else {
            debugJavascriptUrl = AWXDebugResourceActions.urlForResourceNamed(requestContext(),
                                                             JSDebugWindowJavascriptFileName);
View Full Code Here

    {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        try {
            dh.writeTo(os);
        } catch (IOException e) {
            throw new AWGenericException(e);
        }
        return os.toByteArray();
    }
View Full Code Here

                Util.setHeadersForDownload (requestContext(), response, filename);
            }
            response.setContentType(contentType);
            response.setContent(dataHandlerBytes(dh));
        } catch (MessagingException e) {
            throw new AWGenericException(e);
        }
        return response;
    }
View Full Code Here

TOP

Related Classes of ariba.ui.aribaweb.util.AWGenericException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.