Package org.tubo.resource.flow

Examples of org.tubo.resource.flow.FlowContext


        //
        // setup item (hook)
        initializeItem(item);
        //
        // dispatch event
        FlowContext flowContext = dispatchOriginFlowEvent(event,item);
        //
        // return
        return flowContext;
    }
View Full Code Here


                                    

    protected FlowContext dispatchOriginFlowEvent(Event event,Item item) {
        //
        // create FlowContext
        FlowContext flowContext = createFlowContext();
        //
        // set default FlowContext stuff
        flowContext.setOriginEvent(event);
        flowContext.setItem(item);
        flowContext.setOriginator(this);
        //
        // actions pre call listener (hook)
        preOriginFlowEvent(flowContext);
        //
        // call listener and delegate process
View Full Code Here

    /**
     * Create a new FlowContext instance using ResourceManager
     * @return a Item instance
     */
    protected FlowContext createFlowContext() {
        FlowContext flowContext = getResourceManager().getNewFlowContext();
        return flowContext;
    }
View Full Code Here

     * </p>
     * @return new FlowContext instance
     * @throws TuboException
     */
    public FlowContext getNewFlowContext() throws TuboException {
        FlowContext flowContext = null;
        try {
            //
            // get FlowContext via Spring
            flowContext = (FlowContext)beanFactory.getBean(SPRING_FLOW_CONTEXT_BEAN_ID);
        } catch (BeansException e) {
View Full Code Here

    protected Representation processRestletRequest(String requestType, Variant variant) {
        //
        // fire consumer event
        RestletResourceData resourceData = new RestletResourceData(getContext(), getRequest(), getResponse(), variant);
        FlowContext flowContext = doConsumerLifeCycle(requestType,variant);
        //
        //
        Representation result = (Representation)flowContext.getItem().getProperties().get(RestletConsumer.RESTLET_RESOURCE_OUT_REPRESENTATION);
        //
        //
        return result;
    }
View Full Code Here

        RestletConsumer consumer = (RestletConsumer)getRequest().getAttributes().get(WebConsumer.TUBO_WEB_CONSUMER);
        //
        // fire consumer event
        String event = requestType+"-"+props.get(RestletConsumer.ROUTE_PROP_TUBO_REQUEST_EVENT);
        RestletResourceData resourceData = new RestletResourceData(getContext(), getRequest(), getResponse(), variant);
        FlowContext flowContext = consumer.doConsumerLifeCycle(event,resourceData);
        //
        // return flow context
        return flowContext;
    }
View Full Code Here

        //
        // execute a pre procesing HTTP request
        preProcessRequest();
        //
        // execution of the HTTP request processing
        FlowContext flowContext = processRequest();
        //
        // execute a post procesing HTTP request
        postProcessRequest(flowContext);

        if (log.isTraceEnabled()) log.trace(".service() - Done");
View Full Code Here

     */
    public FlowContext processRequest() throws ServletException, IOException {
        if (log.isTraceEnabled()) log.trace(".processRequest() - Begin");
        //
        // fire consumer event
        FlowContext flowContext = doConsumerLifeCycle(getCurrentHttpServletRequest().getMethod(),this);
        //
        // log trace
        if (log.isTraceEnabled()) log.trace(".processRequest() - Done");
        //
        // return
View Full Code Here

TOP

Related Classes of org.tubo.resource.flow.FlowContext

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.