Skip to content
Permalink
Browse files

Add getters to RSocketMessageHandler

  • Loading branch information
rstoyanchev committed Jul 8, 2019
1 parent 2f77541 commit 7b1a6eb50a3ed32dd7158a8553c60ebc115cc296
@@ -148,6 +148,15 @@ public void setMetadataExtractor(MetadataExtractor extractor) {
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 void setDefaultDataMimeType(@Nullable MimeType mimeType) {
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 void setDefaultMetadataMimeType(MimeType mimeType) {
this.defaultMetadataMimeType = mimeType;
}

/**
* Return the configured
* {@link #setDefaultMetadataMimeType defaultMetadataMimeType}.
*/
public MimeType getDefaultMetadataMimeType() {
return this.defaultMetadataMimeType;
}


@Override
public void afterPropertiesSet() {

0 comments on commit 7b1a6eb

Please sign in to comment.
You can’t perform that action at this time.