Methods Summary |
---|
void | destroy()Disables transformation for the endpoint and deregisters the filters.
if (_filter != null) {
FilterRegistry fr = FilterRegistry.getInstance();
String endpoint = getFQEndpointName();
// unregister filters
fr.unregisterFilter(Filter.PROCESS_REQUEST, endpoint, _filter);
fr.unregisterFilter(Filter.PROCESS_RESPONSE, endpoint, _filter);
_filter = null;
}
_logger.finer("Transform handler destroyed for "
+ getEndpointName());
|
java.lang.String | getEndpointName()Returns the name of the endpoint.
return _endpointId;
|
java.lang.String | getFQEndpointName(java.lang.String appId, com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)Returns the fully qualified name of this endpoint.
return appId + DELIM + wsc.getName();
|
java.lang.String | getFQEndpointName()Returns the fully qualified name of this endpoint.
return _applicationId + DELIM + _endpointId;
|
public com.sun.enterprise.admin.wsmgmt.filter.spi.Filter | getFilter(java.lang.String appId, com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)Gets the registered filter for transformation.
FilterRegistry fr = FilterRegistry.getInstance();
String endpoint = getFQEndpointName(appId, wsc);
_logger.finer("getFilter called for "
+ getEndpointName());
List filterList= fr.getFilters(Filter.PROCESS_REQUEST, endpoint);
if ( filterList == null) {
return null;
}
Iterator filterItr = filterList.iterator();
if ( filterItr == null) {
return null;
}
while ( filterItr.hasNext()) {
Filter f = (Filter) filterItr.next();
if ( f instanceof TransformFilter) {
return f;
}
}
return null;
|
public com.sun.enterprise.admin.wsmgmt.filter.spi.Filter | registerFilter(com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)Registers a filter with the filter manager for this endpoint.
_filter = new TransformFilter(_applicationId, wsc);
FilterRegistry fr = FilterRegistry.getInstance();
String endpoint = getFQEndpointName();
// registers the filter
fr.registerFilter(Filter.PROCESS_REQUEST, endpoint, _filter);
fr.registerFilter(Filter.PROCESS_RESPONSE, endpoint, _filter);
return _filter;
|
private void | registerFilter()Registers a filter with the filter manager for this endpoint.
// msg filter
_filter = new TransformFilter(_applicationId, _endpointId);
FilterRegistry fr = FilterRegistry.getInstance();
String endpoint = getFQEndpointName();
// registers the filter
fr.registerFilter(Filter.PROCESS_REQUEST, endpoint, _filter);
fr.registerFilter(Filter.PROCESS_RESPONSE, endpoint, _filter);
|
void | unregisterFilter(java.lang.String appId, com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)Disables transformation for the endpoint and deregisters the filters.
String fn = TransformFilter.getName(appId, wsc);
FilterRegistry fr = FilterRegistry.getInstance();
String endpoint = getFQEndpointName(appId, wsc);
// unregister filters
fr.unregisterFilterByName(Filter.PROCESS_REQUEST, endpoint, fn);
fr.unregisterFilterByName(Filter.PROCESS_RESPONSE, endpoint, fn);
_logger.finer("Transform handler destroyed for "
+ getEndpointName());
|