Add getters to RSocketMessageHandler

This commit is contained in:
Rossen Stoyanchev 2019-07-08 19:39:54 +01:00
parent 2f77541f9c
commit 7b1a6eb50a
1 changed files with 26 additions and 0 deletions

View File

@ -148,6 +148,15 @@ public class RSocketMessageHandler extends MessageMappingMessageHandler {
this.metadataExtractor = extractor;
}
/**
* Return the configured {@link #setMetadataExtractor MetadataExtractor}.
* This may be {@code null} before {@link #afterPropertiesSet()}.
*/
@Nullable
public MetadataExtractor getMetadataExtractor() {
return this.metadataExtractor;
}
/**
* Configure the default content type to use for data payloads if the
* {@code SETUP} frame did not specify one.
@ -158,6 +167,15 @@ public class RSocketMessageHandler extends MessageMappingMessageHandler {
this.defaultDataMimeType = mimeType;
}
/**
* Return the configured
* {@link #setDefaultDataMimeType defaultDataMimeType}, or {@code null}.
*/
@Nullable
public MimeType getDefaultDataMimeType() {
return this.defaultDataMimeType;
}
/**
* Configure the default {@code MimeType} for payload data if the
* {@code SETUP} frame did not specify one.
@ -169,6 +187,14 @@ public class RSocketMessageHandler extends MessageMappingMessageHandler {
this.defaultMetadataMimeType = mimeType;
}
/**
* Return the configured
* {@link #setDefaultMetadataMimeType defaultMetadataMimeType}.
*/
public MimeType getDefaultMetadataMimeType() {
return this.defaultMetadataMimeType;
}
@Override
public void afterPropertiesSet() {