@Override /* InvocationHandler */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { ResponseBeanPropertyMeta pm = rbm.getProperty(method.getName()); if (pm != null) { HttpPartParser pp = pm.getParser(p); HttpPartSchema schema = pm.getSchema(); String name = pm.getPartName(); ClassMeta<?> type = rc.getClassMeta(method.getGenericReturnType()); HttpPartType pt = pm.getPartType(); if (pt == RESPONSE_BODY) { responseBodySchema(schema); return getResponseBody(type); } if (pt == RESPONSE_HEADER) return getResponseHeader(pp, schema, name, type); if (pt == RESPONSE_STATUS) return getResponseCode(); } return null; }
@Override /* InvocationHandler */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { ResponseBeanPropertyMeta pm = rbm.getProperty(method.getName()); if (pm != null) { HttpPartParser pp = pm.getParser(p); HttpPartSchema schema = pm.getSchema(); String name = pm.getPartName(); ClassMeta<?> type = rc.getClassMeta(method.getGenericReturnType()); HttpPartType pt = pm.getPartType(); if (pt == RESPONSE_BODY) { responseBodySchema(schema); return getResponseBody(type); } if (pt == RESPONSE_HEADER) return getResponseHeader(pp, schema, name, type); if (pt == RESPONSE_STATUS) return getResponseCode(); } return null; }
@Override /* InvocationHandler */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { ResponseBeanPropertyMeta pm = rbm.getProperty(method.getName()); if (pm != null) { HttpPartParser pp = pm.getParser(p); HttpPartSchema schema = pm.getSchema(); String name = pm.getPartName(); ClassMeta<?> type = rc.getClassMeta(method.getGenericReturnType()); HttpPartType pt = pm.getPartType(); if (pt == RESPONSE_BODY) { responseBodySchema(schema); return getResponseBody(type); } if (pt == RESPONSE_HEADER) return getResponseHeader(pp, schema, name, type); if (pt == RESPONSE_STATUS) return getResponseCode(); } return null; }