Search in sources :

Example 21 with TJSONProtocol

use of org.apache.thrift.protocol.TJSONProtocol in project simba-os by cegeka.

the class AuthorizationServiceClient method getAuthorizationServiceClient.

protected AuthorizationService.Iface getAuthorizationServiceClient() throws TTransportException {
    THttpClient tHttpClient = new THttpClient(SimbaConfiguration.getSimbaAuthorizationURL());
    TProtocol tProtocol = new TJSONProtocol(tHttpClient);
    return new AuthorizationService.Client(tProtocol);
}
Also used : TJSONProtocol(org.apache.thrift.protocol.TJSONProtocol) TProtocol(org.apache.thrift.protocol.TProtocol) THttpClient(org.apache.thrift.transport.THttpClient) THttpClient(org.apache.thrift.transport.THttpClient)

Aggregations

TJSONProtocol (org.apache.thrift.protocol.TJSONProtocol)21 TProtocol (org.apache.thrift.protocol.TProtocol)12 THttpClient (org.apache.thrift.transport.THttpClient)12 TException (org.apache.thrift.TException)11 IOException (java.io.IOException)9 TMemoryBuffer (org.apache.thrift.transport.TMemoryBuffer)5 UnsupportedEncodingException (java.io.UnsupportedEncodingException)4 TMemoryInputTransport (org.apache.thrift.transport.TMemoryInputTransport)4 ActionDescriptor (org.simbasecurity.api.service.thrift.ActionDescriptor)4 AuthenticationFilterService (org.simbasecurity.api.service.thrift.AuthenticationFilterService)4 HttpServletRequest (javax.servlet.http.HttpServletRequest)2 RequestData (org.simbasecurity.api.service.thrift.RequestData)2 FilterActionFactory (org.simbasecurity.client.filter.action.FilterActionFactory)2 SimbaPrincipal (org.simbasecurity.client.principal.SimbaPrincipal)2 UserPrincipal (com.sun.security.auth.UserPrincipal)1 AccessControlEntry (com.twitter.distributedlog.thrift.AccessControlEntry)1 BKDLConfigFormat (com.twitter.distributedlog.thrift.BKDLConfigFormat)1 Principal (java.security.Principal)1 ServletContext (javax.servlet.ServletContext)1 ServletException (javax.servlet.ServletException)1