@Override public <T extends Wire> Request through(final Class<T> type, final Object... args) { return this.base.through(type, args); }
@Override public <T extends Wire> Request through(final Class<T> type, final Object... args) { return this.base.through(type, args); }
@Override public <T extends Wire> Request through(final Class<T> type, final Object... args) { return this.base.through(type, args); }
@Override public <T extends Wire> Request through(final Class<T> type, final Object... args) { return new SearchRequest(this.request.through(type, args)); } }
/** * Ctor. * @param urn Owner URN * @param token Security token */ public RtSttc(final URN urn, final String token) { this.request = new JdkRequest("http://www.stateful.co") .through(OneMinuteWire.class) .through(RetryWire.class) .through(VerboseWire.class) .through(CachingWire.class, "((POST|PUT|PATCH) .*|.*\\?.*)") .header("X-Sttc-URN", urn.toString()) .header("X-Sttc-Token", token) .header(HttpHeaders.ACCEPT, MediaType.TEXT_XML) .header(HttpHeaders.USER_AGENT, "java-sdk.stateful.co"); }