throws WsConfigurationException {
if (hsodef.getInputStreamInterceptorDefinition() != null) {
Object interceptor = hsodef.getInputStreamInterceptorDefinition().getObject();
if (!(interceptor instanceof InputStreamInterceptor)) {
throw new WsConfigurationException("Error: Interceptor class '" + interceptor.getClass()
+ "' must implement InputStreamInterceptor");
}
m_inputStreamInterceptor = (InputStreamInterceptor) interceptor;
}
if (hsodef.getOutputStreamInterceptorDefinition() != null) {
Object interceptor = hsodef.getOutputStreamInterceptorDefinition().getObject();
if (!(interceptor instanceof OutputStreamInterceptor)) {
throw new WsConfigurationException("Error: Interceptor class '" + interceptor.getClass()
+ "' must implement OutputStreamInterceptor");
}
m_outputStreamInterceptor = (OutputStreamInterceptor) interceptor;
}
}