|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.dreamhead.moco.resource.Resource
public class Resource
| Field Summary | |
|---|---|
protected ResourceReader |
reader
|
| Constructor Summary | |
|---|---|
Resource(Identifiable identifiable,
ResourceConfigApplier configApplier,
ResourceReader reader)
|
|
| Method Summary | |
|---|---|
Resource |
apply(MocoConfig config)
|
java.lang.String |
id()
|
byte[] |
readFor(io.netty.handler.codec.http.FullHttpRequest request)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ResourceReader reader
| Constructor Detail |
|---|
public Resource(Identifiable identifiable,
ResourceConfigApplier configApplier,
ResourceReader reader)
| Method Detail |
|---|
public Resource apply(MocoConfig config)
apply in interface ConfigApplier<Resource>public java.lang.String id()
id in interface Identifiablepublic byte[] readFor(io.netty.handler.codec.http.FullHttpRequest request)
readFor in interface ResourceReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||