类的使用
org.opoo.ootp.client.OotpException
使用OotpException的程序包
-
org.opoo.ootp.client中OotpException的使用
修饰符和类型方法说明default int确认消息。int确认消息。intMessageClient.getMessage(String id) 获取消息。SmartMessageClient.getMessage(String id) default StringMessageClient.getMessageBody(String id) 获取消息体。MessageClient.getMessageInfo(String id) 获取已经发送的消息的信息,如消息的状态,是否被对方消费等。SmartMessageClient.getMessageInfo(String id) default PollResultMessageClient.poll()使用默认参数轮询消息。default PollResultMessageClient.poll(int limit, boolean autoAck, boolean full) 轮询消息。MessageClient.poll(PollRequest request) 轮询消息。SmartMessageClient.poll(PollRequest request) FileClient.put(ExsMessage message, String storage, String pathInfo) 上传文件。default int退回消息,使消息可以重新消费。default int退回消息,使消息可以重新消费。int退回消息,使消息可以重新消费。intintdefault String已过时。default String发送消息。default StringMessageClient.send(String body, ExsMetadata metadata) 发送消息。default StringMessageClient.send(ExsBody body, ExsMetadata metadata) 发送消息。MessageClient.send(ExsMessage message) 发送消息。SmartMessageClient.send(ExsMessage message) 支持文件及大报文的发送,接收时必须单独接收,使用SmartMessageClient.getMessage(String)读取消息内容。default StringFileClient.upload(InputStream stream, ExsMetadata metadata) 上传文件default StringFileClient.upload(InputStream stream, ExsMetadata metadata, String storage) 上传文件default StringFileClient.upload(InputStream stream, ExsMetadata metadata, String storage, String pathInfo) 上传文件default String上传文件。default String上传文件。default StringFileClient.upload(String storage, String to, String contentType, InputStream file, String fileName, long fileSize, long lastModified) 上传文件。default StringFileClient.upload(String storage, String to, String contentType, InputStream file, String fileName, long fileSize, long lastModified, String pathInfo) 上传文件。default StringFileClient.upload(ExsMessage message) 上传文件。default StringFileClient.upload(ExsMessage message, String storage) 上传文件。default StringFileClient.upload(ExsMessage message, String storage, String pathInfo) 上传文件。default StringFileClient.uploadToCustomStorage(String storage, String contentType, File file) 上传到个性化的存储器中。default StringFileClient.uploadToCustomStorage(String storage, String contentType, File file, String pathInfo) 上传到个性化的存储器中。default StringFileClient.uploadToCustomStorage(String storage, String contentType, InputStream file, String fileName, long fileSize, long lastModified) 上传到个性化的存储器中。default StringFileClient.uploadToCustomStorage(String storage, String contentType, InputStream file, String fileName, long fileSize, long lastModified, String pathInfo) 上传到个性化的存储器中。default StringFileClient.uploadToDefaultStorage(String to, String contentType, File file) 上传文件到默认文件中转服务。default StringFileClient.uploadToDefaultStorage(String to, String contentType, File file, String pathInfo) 上传文件到默认文件中转服务。default StringFileClient.uploadToDefaultStorage(String to, String contentType, InputStream file, String fileName, long fileSize, long lastModified) 上传文件到默认文件中转服务。default StringFileClient.uploadToDefaultStorage(String to, String contentType, InputStream file, String fileName, long fileSize, long lastModified, String pathInfo) 上传文件到默认文件中转服务。default StringFileClient.uploadToFsStorage(String repo, String contentType, File file) 上传文件到文件服务文件库。default StringFileClient.uploadToFsStorage(String repo, String contentType, File file, String pathInfo) 上传文件到文件服务文件库。default StringFileClient.uploadToFsStorage(String repo, String contentType, InputStream file, String fileName, long fileSize, long lastModified) 上传文件到文件服务文件库。default StringFileClient.uploadToFsStorage(String repo, String contentType, InputStream file, String fileName, long fileSize, long lastModified, String pathInfo) 上传文件到文件服务文件库。 -
org.opoo.ootp.client.impl中OotpException的使用
修饰符和类型方法说明intintprotected ExsMessageAbstractMessageClient.getMessage(String id, Function<String, String> idToPath) V1MessageClientImpl.getMessage(String id) V2MessageClientImpl.getMessage(String id) V1MessageClientImpl.getMessageInfo(String id) V2MessageClientImpl.getMessageInfo(String id) V1MessageClientImpl.poll(PollRequest request) V2MessageClientImpl.poll(PollRequest request) protected intAbstractMessageClient.processIds(List<String> ids, Consumer<Object> requestConfigurer, String path, Function<org.apache.http.client.methods.HttpPost, Integer> resultHandler) FileClientImpl.put(ExsMessage message, String storage, String pathInfo) intintV1MessageClientImpl.send(ExsMessage message) V2MessageClientImpl.send(ExsMessage message) protected voidAbstractMessageClient.validateResponse(org.apache.http.client.methods.CloseableHttpResponse response) protected voidAbstractMessageClient.validateResponse(org.apache.http.client.methods.CloseableHttpResponse response, Supplier<Boolean> parseErrorBody, String baseExceptionMessage) 对响应进行初步校验。
MessageClient.send(String, String, String, String)方法