File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed
main/java/edu/iris/dmc/service
test/java/edu/iris/dmc/service Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ package edu .iris .dmc .service ;
2+
3+ import javax .net .ssl .HostnameVerifier ;
4+ import javax .net .ssl .SSLSession ;
5+
6+ /**
7+ * Util4J
8+ * @author Util4J
9+ *
10+ */
11+ public class TrustAnyHostnameVerifier implements HostnameVerifier {
12+
13+ public boolean verify (String hostname , SSLSession session ) {
14+ return true ;
15+ }
16+ }
Original file line number Diff line number Diff line change 1+ package edu .iris .dmc .service ;
2+
3+ import java .security .cert .CertificateException ;
4+ import java .security .cert .X509Certificate ;
5+
6+ import javax .net .ssl .X509TrustManager ;
7+
8+ /**
9+ * Util4J
10+ * @author Util4J
11+ *
12+ */
13+ public class TrustAnyTrustManager implements X509TrustManager {
14+
15+ public void checkClientTrusted (X509Certificate [] chain , String authType ) throws CertificateException {
16+ }
17+
18+ public void checkServerTrusted (X509Certificate [] chain , String authType ) throws CertificateException {
19+ }
20+
21+ public X509Certificate [] getAcceptedIssuers () {
22+ return new X509Certificate [] {};
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ package edu .iris .dmc .service ;
2+
3+ import java .util .List ;
4+
5+ import org .junit .Test ;
6+
7+ import edu .iris .dmc .criteria .SacpzCriteria ;
8+ import edu .iris .dmc .fdsn .station .model .Network ;
9+ import edu .iris .dmc .sacpz .model .Sacpz ;
10+ import edu .iris .dmc .ws .util .DateUtil ;
11+ import edu .iris .dmc .ws .util .RespUtil ;
12+
13+ public class StationServiceTest {
14+
15+ @ Test
16+ public void fetch () throws Exception {
17+
18+ StationService service = ServiceUtil .getInstance ().getStationService ();
19+ List <Network > networks =service .fetch ("https://fdsnws.raspberryshakedata.com/fdsnws/station/1/query?format=text&level=channel" );
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments