use of com.github.dreamhead.moco.resource.ContentResource in project moco by dreamhead.
the class ContentHandler method apply.
@Override
public ResponseHandler apply(final MocoConfig config) {
ResponseHandler handler = super.apply(config);
if (handler != this) {
return handler;
}
Resource appliedReosurce = this.resource.apply(config);
if (appliedReosurce != this.resource) {
return new ContentHandler((ContentResource) appliedReosurce);
}
return this;
}
Aggregations