/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(License a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Contact a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url(), a.email()); }
/** * Get the HTTP response headers. * * @return * The HTTP response headers. * <br>An unmodifiable map. * <br>Never <jk>null</jk>. */ @ResponseHeader("*") public Map<String,Object> getHeaders() { return headers; }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Body a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api(), a.value()) && allFalse(a.required()) && empty(a.schema()); }
@Response(schema=@Schema(type="string",format="binary"), description="Contents of file") static class FileContents extends FileInputStream { public FileContents(File file) throws FileNotFoundException { super(file); } }
Builder apply(Request a) { if (a != null) { if (a.partSerializer() != HttpPartSerializer.Null.class) serializer = a.partSerializer(); if (a.partParser() != HttpPartParser.Null.class) parser = a.partParser(); } return this; }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Contact a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url(), a.email()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(License a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url()); }
@ResponseHeader("Content-Type") @Override /* Writeable */ public MediaType getMediaType() { return mediaType; }
@Response(description="File action") public static class Action extends LinkString { public Action(String name, String uri, Object...uriArgs) { super(name, uri, uriArgs); } }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Contact a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url(), a.email()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(License a) { if (a == null) return true; return allEmpty(a.value()) && allEmpty(a.name(), a.url()); }
/** * @return <code>Location</code> header value. */ @ResponseHeader(name="Location", description="Temporary location of resource.") public URI getLocation() { return location; } }
@Response(description="File action") public static class Action extends LinkString { public Action(String name, String uri, Object...uriArgs) { super(name, uri, uriArgs); } }
/** * @return <code>Location</code> header value. */ @ResponseHeader(name="Location", description="New location of resource.") public URI getLocation() { return location; } }
/** * @return <code>Location</code> header value. */ @ResponseHeader(name="Location", description="Other location.") public URI getLocation() { return location; } }
/** * @return <code>Location</code> header value. */ @ResponseHeader(name="Location", description="Location of resource.") public URI getLocation() { return location; } }