{"id":47787587,"url":"https://github.com/vashishthask/tcpcache","last_synced_at":"2026-04-03T15:01:45.099Z","repository":{"id":145076525,"uuid":"535064121","full_name":"vashishthask/tcpcache","owner":"vashishthask","description":"tcpcache is a fork on http://ws.apache.org/commons/tcpmon/ and can be used to cache/save tcp response.  From the original tcpmon source, GUI part is stripped. ","archived":false,"fork":false,"pushed_at":"2022-09-17T04:10:26.000Z","size":38,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-22T15:02:44.603Z","etag":null,"topics":["cache","java","tcp","tcp-cache","tcp-printer","tcpcache","tcpmon"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vashishthask.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-10T17:05:21.000Z","updated_at":"2022-10-22T02:09:16.000Z","dependencies_parsed_at":"2026-04-03T15:01:08.046Z","dependency_job_id":null,"html_url":"https://github.com/vashishthask/tcpcache","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/vashishthask/tcpcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vashishthask%2Ftcpcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vashishthask%2Ftcpcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vashishthask%2Ftcpcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vashishthask%2Ftcpcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vashishthask","download_url":"https://codeload.github.com/vashishthask/tcpcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vashishthask%2Ftcpcache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31359081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T14:24:47.623Z","status":"ssl_error","status_checked_at":"2026-04-03T14:24:32.380Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","java","tcp","tcp-cache","tcp-printer","tcpcache","tcpmon"],"created_at":"2026-04-03T15:00:43.450Z","updated_at":"2026-04-03T15:01:41.120Z","avatar_url":"https://github.com/vashishthask.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCP Cache\n\ntcpcache is a fork on http://ws.apache.org/commons/tcpmon/ and can be used to cache/save tcp response.\n\nFrom the original tcpmon source, GUI part is stripped. \"tcpcache\" is useful in following scenarios: \n\n* **Caching:**\nSOAP or TCP response can be cached. In that case configuration (cacheconfig.properties) need to have\n\"chachingOn\" property as \"true\".\n\n* **Printing SOAP response:**\nIf you don't want caching ON, you can switch that off using configuration. In that case, \nit works as tcpmon without GUI which is useful to print SOAP responses.\n\n### Available on Maven Central\nThe library can be used with following Maven dependency:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eio.github.vashishthask\u003c/groupId\u003e\n  \u003cartifactId\u003etcpcache\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Sample tcpcache.properties\n\n\t## by default caching is ON. In this case the library works as stripped down version of tcpmon\n\t## which could be used in test cases or java classes as proxy to print the tcp responses.\n\t## In order to switch caching OFF, change cachingOn to false\n\tcachingOn=true\n\n\t## directory where cached recording will be stored. default is taken as sec/test/resources\n\trecordingDir=src/test/resources\n\t\n### Sample usage of tcpcache in CXF based web service client.\n\n\tSimpleService_Service ss = new SimpleService_Service(wsdlURL,\n\t\tSERVICE_NAME);\n\tSimpleService port = ss.getP1();\n\n\t// for tcpcache to work -- start\n\tTcpCache tcpCache = new TcpCache(1234, \"127.0.0.1\", 8080,\n\t\tSimpleService_Service.class, \"main\", CacheMode.RECORDING_NEW);\n\tBindingProvider bp = (BindingProvider) port;\n\tMap\u003cString, Object\u003e context = bp.getRequestContext();\n\tcontext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,\n\t\t\"http://localhost:1234/ws/p1\");\n\t// for tcpcache to work -- end\n\n\t{\n\t    System.out.println(\"Invoking concat...\");\n\t    ConcatRequest _concat_parameters = new ConcatRequest();\n\t    _concat_parameters.setS1(\"First Value\");\n\t    _concat_parameters.setS2(\"Second Value\");\n\t    java.lang.String _concat__return = port.concat(_concat_parameters);\n\t    System.out.println(\"concat.result=\" + _concat__return);\n\t}\n\t\n### Sample usage of tcpcache in Axis2 based web service client\n\t\n\t//SimpleServiceStub service = new SimpleServiceStub(\"http://localhost:8080/axis2/services/SimpleService\");\n\t\t\n\t//for tcpcache to work - start\n\tTcpCache tcpCache = new TcpCache(1234, \"127.0.0.1\", 8080, SimpleClient.class , \"main\", CacheMode.RECORDING_NEW);\n\tSimpleServiceStub service = new SimpleServiceStub(\"http://localhost:1234/axis2/services/SimpleService\");\n\t//for tcpcache to work - end\n\t\t\n\tConcatRequest request = new ConcatRequest();\n\trequest.setS1(\"abc\");\n\trequest.setS2(\"123\");\n\tConcatResponse response = service.concat(request);\n\tSystem.out.println(response.getConcatResponse());\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvashishthask%2Ftcpcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvashishthask%2Ftcpcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvashishthask%2Ftcpcache/lists"}