@Test public void nonHttp() { DefaultExecutionContextResolverFactory factory = new DefaultExecutionContextResolverFactory(); DehydratedExecutionContextResolver<?,?>[] resolvers = factory.resolvers(Protocol.SOCKET); assertNull(resolvers); }
@Override public <T,B> DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol) { if (protocol == Protocol.SOAP) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new SoapIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } if (protocol.underlyingTransportIsHttp()) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new HttpIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } return null; }
DefaultExecutionContextResolverFactory implements DehydratedExecutionContextResolverFactory { @Override public <T,B> DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol) { if (protocol == Protocol.SOAP) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new SoapIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } if (protocol.underlyingTransportIsHttp()) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new HttpIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } return null; } }
DefaultExecutionContextResolverFactory implements DehydratedExecutionContextResolverFactory { @Override public <T,B> DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol) { if (protocol == Protocol.SOAP) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new SoapIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } if (protocol.underlyingTransportIsHttp()) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new HttpIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } return null; }  }
DefaultExecutionContextResolverFactory implements DehydratedExecutionContextResolverFactory { @Override public <T,B> DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol) { if (protocol == Protocol.SOAP) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new SoapIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } if (protocol.underlyingTransportIsHttp()) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new HttpIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } return null; }  @ManagedAttribute int getUnknownCipherKeyLength(); void setUnknownCipherKeyLength(int unknownCipherKeyLength); void setRequestTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); void setGeoIPLocator(GeoIPLocator geoIPLocator); void setGeoLocationDeserializer(GeoLocationDeserializer geoLocationDeserializer); void setInferredCountryResolver(InferredCountryResolver<HttpServletRequest> inferredCountryResolver); void setUuidHeader(String uuidHeader); void setUuidParentsHeader(String uuidParentsHeader); @Override DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol); @Override String getName(); }
DefaultExecutionContextResolverFactory implements DehydratedExecutionContextResolverFactory { @Override public <T,B> DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol) { if (protocol == Protocol.SOAP) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new SoapIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } if (protocol.underlyingTransportIsHttp()) { return new DehydratedExecutionContextResolver[] { (DehydratedExecutionContextResolver<T, B>) new HttpIdentityTokenResolver(), (DehydratedExecutionContextResolver<T, B>) new HttpLocationResolver<>(geoIPLocator, geoLocationDeserializer, inferredCountryResolver), (DehydratedExecutionContextResolver<T, B>) new HttpReceivedTimeResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpRequestedTimeResolver<>(requestTimeResolver), (DehydratedExecutionContextResolver<T, B>) new HttpRequestUuidResolver<>(uuidHeader, uuidParentsHeader), (DehydratedExecutionContextResolver<T, B>) new HttpTraceLoggingResolver<>(), (DehydratedExecutionContextResolver<T, B>) new HttpTransportStrengthResolver<>(unknownCipherKeyLength) }; } return null; }  @ManagedAttribute int getUnknownCipherKeyLength(); void setUnknownCipherKeyLength(int unknownCipherKeyLength); void setRequestTimeResolver(RequestTimeResolver<HttpServletRequest> requestTimeResolver); void setGeoIPLocator(GeoIPLocator geoIPLocator); void setGeoLocationDeserializer(GeoLocationDeserializer geoLocationDeserializer); void setInferredCountryResolver(InferredCountryResolver<HttpServletRequest> inferredCountryResolver); void setUuidHeader(String uuidHeader); void setUuidParentsHeader(String uuidParentsHeader); @Override DehydratedExecutionContextResolver<T, B>[] resolvers(Protocol protocol); @Override String getName();  }