title: Access solr api using java class
body: <p>Can any on tell me how to access solr api using java class.
  i want to access <strong><a href="https://localhost:8443/solr4/alfresco/afts?q=DOC_TYPE:UnindexedNode" rel="nofollow">https://localhost:8443/solr4/alfresco/afts?q=DOC_TYPE:UnindexedNode</a></strong> api using java class.but the problem is that when i am calling with java class its giving <strong>"javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost found"</strong>.I tried all possible to resolve that. i added certificate in keystore that present in jdk and jre and when i just use a validator to validate then its giving <strong>"pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target"</strong> .i am using alfresco 5.0.</p>