All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.twenty11.skysail.common.responses.FormResponse Maven / Gradle / Ivy

The newest version!
package de.twenty11.skysail.common.responses;

import de.twenty11.skysail.common.PresentationStyle;

/**
 * A last type of Response is the FormResponse: You'd get it in case of an HTML - Request whenever you want to add an
 * entity or to display an existing one which you'd want to change.
 */
public class FormResponse extends SkysailResponse {

    private String target;

    public FormResponse(T entity) {
        super(entity);
        this.target = ".";
        setMessage("web form");
    }

    public FormResponse(T entity, String target) {
        super(entity);
        this.target = target;
        setMessage("web form");
        setPresentationStyleHint(PresentationStyle.EDIT);
    }

    public String getTarget() {
        return target;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy