Package com.astamuse.asta4d.web.dispatch.response.provider

Examples of com.astamuse.asta4d.web.dispatch.response.provider.HeaderInfo


    public StaticResourceHandler(String basePath) {
        super(basePath);
    }

    private HeaderInfoProvider createSimpleHeaderResponse(int status) {
        HeaderInfo header = new HeaderInfo(status);
        HeaderInfoProvider provider = new HeaderInfoProvider(header);
        provider.setContinuable(false);
        return provider;
    }
View Full Code Here


    @RequestHandler
    public HeaderInfo doAdd(String newUserName) {
        // some logic that should add a new user by the given name
        // ...
        return new HeaderInfo(200);
    }
View Full Code Here

    public HandyRuleWithForward forward(Object result, String targetPath) {
        return this.forward(result, asta4dPageTransformer.transformToContentProvider(targetPath));
    }

    public HandyRuleWithForward forward(Object result, String targetPath, int status) {
        HeaderInfoProvider header = (HeaderInfoProvider) headerTransformer.transformToContentProvider(new HeaderInfo(status));
        Asta4DPageProvider page = (Asta4DPageProvider) asta4dPageTransformer.transformToContentProvider(targetPath);
        SerialProvider sp = new SerialProvider(header, page);
        return this.forward(result, sp);
    }
View Full Code Here

    public StaticResourceHandler(String basePath) {
        super(basePath);
    }

    private HeaderInfoProvider createSimpleHeaderResponse(int status) {
        HeaderInfo header = new HeaderInfo(status);
        HeaderInfoProvider provider = new HeaderInfoProvider(header);
        provider.setContinuable(false);
        return provider;
    }
View Full Code Here

TOP

Related Classes of com.astamuse.asta4d.web.dispatch.response.provider.HeaderInfo

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.