com.slack.api.bolt.request.WebEndpointRequest Maven / Gradle / Ivy
The newest version!
package com.slack.api.bolt.request;
import com.slack.api.bolt.context.WebEndpointContext;
import lombok.ToString;
/**
* Additional Web Endpoint Definition.
*/
@ToString(callSuper = true)
public class WebEndpointRequest {
private String clientIpAddress;
private final String queryString;
private final String requestBody;
private final RequestHeaders headers;
public WebEndpointRequest(
String queryString,
String requestBody,
RequestHeaders headers) {
this.queryString = queryString;
this.requestBody = requestBody;
this.headers = headers;
}
private WebEndpointContext context = new WebEndpointContext();
public WebEndpointContext getContext() {
return context;
}
public String getQueryString() {
return queryString;
}
public String getRequestBodyAsString() {
return requestBody;
}
public RequestHeaders getHeaders() {
return this.headers;
}
public String getClientIpAddress() {
return clientIpAddress;
}
public void setClientIpAddress(String clientIpAddress) {
this.clientIpAddress = clientIpAddress;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy