类的使用
org.opoo.ootp.client.OotpException
-
使用OotpException的程序包 程序包 说明 org.opoo.ootp.client org.opoo.ootp.client.impl -
-
org.opoo.ootp.client中OotpException的使用
抛出OotpException的org.opoo.ootp.client中的方法 修饰符和类型 方法 说明 default intMessageClient. ack(java.lang.String... ids)确认消息。intMessageClient. ack(java.util.List<java.lang.String> ids)确认消息。intSmartMessageClient. ack(java.util.List<java.lang.String> ids)ExsMessageMessageClient. getMessage(java.lang.String id)获取消息。ExsMessageSmartMessageClient. getMessage(java.lang.String id)default java.lang.StringMessageClient. getMessageBody(java.lang.String id)获取消息体。ExsMessageInfoMessageClient. getMessageInfo(java.lang.String id)获取已经发送的消息的信息,如消息的状态,是否被对方消费等。ExsMessageInfoSmartMessageClient. getMessageInfo(java.lang.String id)default PollResultMessageClient. poll()使用默认参数轮询消息。default PollResultMessageClient. poll(int limit, boolean autoAck, boolean full)轮询消息。PollResultMessageClient. poll(PollRequest request)轮询消息。PollResultSmartMessageClient. poll(PollRequest request)FileInfoFileClient. put(ExsMessage message, java.lang.String storage, java.lang.String pathInfo)上传文件。default intMessageClient. ret(java.lang.String... ids)退回消息,使消息可以重新消费。default intMessageClient. ret(java.util.List<java.lang.String> ids)退回消息,使消息可以重新消费。intMessageClient. ret(java.util.List<java.lang.String> ids, java.util.function.Consumer<java.lang.Object> requestConfigurer)退回消息,使消息可以重新消费。intSmartMessageClient. ret(java.util.List<java.lang.String> ids)intSmartMessageClient. ret(java.util.List<java.lang.String> ids, java.util.function.Consumer<java.lang.Object> requestConfigurer)default java.lang.StringMessageClient. send(java.lang.String type, java.lang.String to, java.lang.String contentType, byte[] body)已过时。由于机构外联仅接收文本消息,因此建议直接使用MessageClient.send(String, String, String, String)方法default java.lang.StringMessageClient. send(java.lang.String type, java.lang.String to, java.lang.String contentType, java.lang.String body)发送消息。default java.lang.StringMessageClient. send(java.lang.String body, ExsMetadata metadata)发送消息。default java.lang.StringMessageClient. send(ExsBody body, ExsMetadata metadata)发送消息。java.lang.StringMessageClient. send(ExsMessage message)发送消息。java.lang.StringSmartMessageClient. send(ExsMessage message)支持文件及大报文的发送,接收时必须单独接收,使用SmartMessageClient.getMessage(String)读取消息内容。default java.lang.StringFileClient. upload(java.io.InputStream stream, ExsMetadata metadata)上传文件default java.lang.StringFileClient. upload(java.io.InputStream stream, ExsMetadata metadata, java.lang.String storage)上传文件default java.lang.StringFileClient. upload(java.io.InputStream stream, ExsMetadata metadata, java.lang.String storage, java.lang.String pathInfo)上传文件default java.lang.StringFileClient. upload(java.lang.String storage, java.lang.String to, java.lang.String contentType, java.io.File file)上传文件。default java.lang.StringFileClient. upload(java.lang.String storage, java.lang.String to, java.lang.String contentType, java.io.File file, java.lang.String pathInfo)上传文件。default java.lang.StringFileClient. upload(java.lang.String storage, java.lang.String to, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified)上传文件。default java.lang.StringFileClient. upload(java.lang.String storage, java.lang.String to, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified, java.lang.String pathInfo)上传文件。default java.lang.StringFileClient. upload(ExsMessage message)上传文件。default java.lang.StringFileClient. upload(ExsMessage message, java.lang.String storage)上传文件。default java.lang.StringFileClient. upload(ExsMessage message, java.lang.String storage, java.lang.String pathInfo)上传文件。default java.lang.StringFileClient. uploadToCustomStorage(java.lang.String storage, java.lang.String contentType, java.io.File file)上传到个性化的存储器中。default java.lang.StringFileClient. uploadToCustomStorage(java.lang.String storage, java.lang.String contentType, java.io.File file, java.lang.String pathInfo)上传到个性化的存储器中。default java.lang.StringFileClient. uploadToCustomStorage(java.lang.String storage, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified)上传到个性化的存储器中。default java.lang.StringFileClient. uploadToCustomStorage(java.lang.String storage, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified, java.lang.String pathInfo)上传到个性化的存储器中。default java.lang.StringFileClient. uploadToDefaultStorage(java.lang.String to, java.lang.String contentType, java.io.File file)上传文件到默认文件中转服务。default java.lang.StringFileClient. uploadToDefaultStorage(java.lang.String to, java.lang.String contentType, java.io.File file, java.lang.String pathInfo)上传文件到默认文件中转服务。default java.lang.StringFileClient. uploadToDefaultStorage(java.lang.String to, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified)上传文件到默认文件中转服务。default java.lang.StringFileClient. uploadToDefaultStorage(java.lang.String to, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified, java.lang.String pathInfo)上传文件到默认文件中转服务。default java.lang.StringFileClient. uploadToFsStorage(java.lang.String repo, java.lang.String contentType, java.io.File file)上传文件到文件服务文件库。default java.lang.StringFileClient. uploadToFsStorage(java.lang.String repo, java.lang.String contentType, java.io.File file, java.lang.String pathInfo)上传文件到文件服务文件库。default java.lang.StringFileClient. uploadToFsStorage(java.lang.String repo, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified)上传文件到文件服务文件库。default java.lang.StringFileClient. uploadToFsStorage(java.lang.String repo, java.lang.String contentType, java.io.InputStream file, java.lang.String fileName, long fileSize, long lastModified, java.lang.String pathInfo)上传文件到文件服务文件库。 -
org.opoo.ootp.client.impl中OotpException的使用
抛出OotpException的org.opoo.ootp.client.impl中的方法 修饰符和类型 方法 说明 intV1MessageClientImpl. ack(java.util.List<java.lang.String> ids)intV2MessageClientImpl. ack(java.util.List<java.lang.String> ids)protected ExsMessageAbstractMessageClient. getMessage(java.lang.String id, java.util.function.Function<java.lang.String,java.lang.String> idToPath)ExsMessageV1MessageClientImpl. getMessage(java.lang.String id)ExsMessageV2MessageClientImpl. getMessage(java.lang.String id)ExsMessageInfoV1MessageClientImpl. getMessageInfo(java.lang.String id)ExsMessageInfoV2MessageClientImpl. getMessageInfo(java.lang.String id)PollResultV1MessageClientImpl. poll(PollRequest request)PollResultV2MessageClientImpl. poll(PollRequest request)protected intAbstractMessageClient. processIds(java.util.List<java.lang.String> ids, java.util.function.Consumer<java.lang.Object> requestConfigurer, java.lang.String path, java.util.function.Function<org.apache.http.client.methods.HttpPost,java.lang.Integer> resultHandler)FileInfoFileClientImpl. put(ExsMessage message, java.lang.String storage, java.lang.String pathInfo)intV1MessageClientImpl. ret(java.util.List<java.lang.String> ids, java.util.function.Consumer<java.lang.Object> requestConfigurer)intV2MessageClientImpl. ret(java.util.List<java.lang.String> ids, java.util.function.Consumer<java.lang.Object> requestConfigurer)java.lang.StringV1MessageClientImpl. send(ExsMessage message)java.lang.StringV2MessageClientImpl. send(ExsMessage message)protected voidAbstractMessageClient. validateResponse(org.apache.http.client.methods.CloseableHttpResponse response)protected voidAbstractMessageClient. validateResponse(org.apache.http.client.methods.CloseableHttpResponse response, java.util.function.Supplier<java.lang.Boolean> parseErrorBody, java.lang.String baseExceptionMessage)
-