| 680 | } |
| 681 | |
| 682 | public static ResponseHandler attachment(final String filename, final Resource resource) { |
| 683 | return AndResponseHandler.and( |
| 684 | with(header(HttpHeaders.CONTENT_DISPOSITION, format("attachment; filename=%s", checkNotNullOrEmpty(filename, "Filename should not be null or empty")))), |
| 685 | with(checkNotNull(resource, "Resource should not be null"))); |
| 686 | } |
| 687 | |
| 688 | public static ResponseHandler join(final MocoGroup group) { |
| 689 | return new JoinResponseHandler(checkNotNull(group, "group should not be empty")); |