package com.brframework.commoncms.core;

import lombok.Builder;

/**
 * URI协议
 * @author xu
 * @date 2018/10/11 9:48
 */
@Builder
public class UriProtocol {

    /**
     * 界面跳转
     */
    public static final String PANEL = "PANEL";
    /**
     * 请求
     */
    public static final String REQUEST = "REQUEST";
    /**
     * 路由
     */
    public static final String ROUTE = "ROUTE";

    /**
     * 协议
     */
    String protocol;
    /**
     * 跳转地址
     */
    String path;


    @Override
    public String toString() {
        return protocol + "://" + path;
    }
}
