Add getters to RSocketMessageHandler
This commit is contained in:
parent
2f77541f9c
commit
7b1a6eb50a
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue