public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }
public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; step.async = 1; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }
public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }
public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; step.async = 1; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }
public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }
public ApiCallStep process(TraceContext ctx, HookArgs hookPoint) { ApiCallStep2 step = new ApiCallStep2(); step.opt = 1; step.address = null; step.async = 1; if (ok) { try { URI uri = (URI) hookPoint.args[0]; if (uri != null) { step.address = uri.getHost() + ":" + uri.getPort(); ctx.apicall_target = step.address; ctx.apicall_name = uri.getPath(); } } catch (Exception e) { ok = false; } } if (ctx.apicall_name == null) ctx.apicall_name = hookPoint.class1; ctx.lastApiCallStep = step; return step; }