Class SetWebhook
- java.lang.Object
-
- com.jtelegram.api.requests.framework.AbstractTelegramRequest
-
- com.jtelegram.api.requests.framework.UpdateTelegramRequest
-
- com.jtelegram.api.requests.webhooks.SetWebhook
-
- All Implemented Interfaces:
TelegramRequest
public class SetWebhook extends UpdateTelegramRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetWebhook.SetWebhookBuilder
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.Integer>
PERMITTED_PORTS
-
Fields inherited from class com.jtelegram.api.requests.framework.UpdateTelegramRequest
callback
-
Fields inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
errorHandler, gson
-
Fields inherited from interface com.jtelegram.api.requests.framework.TelegramRequest
JSON_MEDIA_TYPE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Request.Builder
build(TelegramBot bot)
static SetWebhook.SetWebhookBuilder
builder()
java.util.List<UpdateType>
getAllowedTypes()
LocalInputFile
getCertificate()
java.lang.Integer
getMaxConnections()
java.net.URL
getUrl()
protected boolean
isValid()
Checks validity of this request.java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.requests.framework.UpdateTelegramRequest
handleResponse, setCallback
-
Methods inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
canEqual, equals, getBody, getEndPoint, handleError, handleException, hashCode, serialize, setErrorHandler, validate
-
-
-
-
Method Detail
-
build
public okhttp3.Request.Builder build(TelegramBot bot)
-
isValid
protected boolean isValid()
Description copied from class:UpdateTelegramRequest
Checks validity of this request. Internal method used before sending.- Specified by:
isValid
in classUpdateTelegramRequest
- Returns:
- If it's valid
-
builder
public static SetWebhook.SetWebhookBuilder builder()
-
getUrl
public java.net.URL getUrl()
-
getCertificate
public LocalInputFile getCertificate()
-
getMaxConnections
public java.lang.Integer getMaxConnections()
-
getAllowedTypes
public java.util.List<UpdateType> getAllowedTypes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-