@MetaInfServices(value=com.alibaba.jvm.sandbox.api.Module.class) public class DebugRalphModule extends HttpSupported implements Module
模块名字取自我喜欢的一部动画《Wreck-It Ralph》(无敌破坏王), 能对任意方法模拟指定的故障类型:
HttpSupported.HttpErrorCodeException| 构造器和说明 |
|---|
DebugRalphModule() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
concurrentLimit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
delay(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
exception(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
void |
rateLimit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
getParameter, getParameter, getParameter, getParameter, getParameter, getParameters, getParameters, regConverterpublic void concurrentLimit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionpublic void rateLimit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionpublic void exception(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionpublic void delay(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws IOException
IOExceptionCopyright © 2018 Alibaba Open Source. All rights reserved.