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

com.dingtalk.open.app.api.graph.RequestLine Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package com.dingtalk.open.app.api.graph;


import com.alibaba.fastjson2.annotation.JSONField;

import java.net.URI;

/**
 * @author feiyin
 * @date 2023/9/22
 */
public class RequestLine {
    /**
     * 请求方法
     */
    private GraphAPIMethod method;
    /**
     * 请求uri
     */
    private URI uri;
    public GraphAPIMethod getMethod() {
        return method;
    }
    public void setMethod(GraphAPIMethod method) {
        this.method = method;
    }
    public URI getUri() {
        return uri;
    }
    public void setUri(URI uri) {
        this.uri = uri;
    }

    /**
     * 获取请求路径
     * @return
     */
    @JSONField(serialize = false)
    public String getPath() {
        return uri == null ? "" : uri.getPath();
    }

    /**
     * 获取请求参数
     * @return
     */
    @JSONField(serialize = false)
    public String getQuery() {
        return uri == null ? "" : uri.getQuery();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy