mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +02:00
Inject RDAP help information in ConfigModule
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140849879
This commit is contained in:
parent
3740171bbf
commit
c59b738b5b
57 changed files with 436 additions and 306 deletions
|
@ -68,6 +68,7 @@ public abstract class RdapActionBase implements Runnable {
|
|||
@Inject Response response;
|
||||
@Inject @RequestMethod Action.Method requestMethod;
|
||||
@Inject @RequestPath String requestPath;
|
||||
@Inject RdapJsonFormatter rdapJsonFormatter;
|
||||
@Inject @Config("rdapLinkBase") String rdapLinkBase;
|
||||
@Inject @Config("rdapWhoisServer") @Nullable String rdapWhoisServer;
|
||||
|
||||
|
@ -130,7 +131,7 @@ public abstract class RdapActionBase implements Runnable {
|
|||
try {
|
||||
if (requestMethod != Action.Method.HEAD) {
|
||||
response.setPayload(
|
||||
JSONValue.toJSONString(RdapJsonFormatter.makeError(status, title, description)));
|
||||
JSONValue.toJSONString(rdapJsonFormatter.makeError(status, title, description)));
|
||||
}
|
||||
response.setContentType(RESPONSE_MEDIA_TYPE);
|
||||
} catch (Exception ex) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue