本文整理了Java中org.jboss.wsf.spi.deployment.Endpoint.getRequestHandler()
方法的一些代码示例,展示了Endpoint.getRequestHandler()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Endpoint.getRequestHandler()
方法的具体详情如下:
包路径:org.jboss.wsf.spi.deployment.Endpoint
类名称:Endpoint
方法名:getRequestHandler
[英]Get the request handler for this endpoint
[中]获取此端点的请求处理程序
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
/**
* Serves the requests
*/
public final void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
try
{
EndpointAssociation.setEndpoint(endpoint);
RequestHandler requestHandler = endpoint.getRequestHandler();
requestHandler.handleHttpRequest(endpoint, req, res, getServletContext());
}
finally
{
this.postService();
EndpointAssociation.removeEndpoint();
}
}
代码示例来源:origin: org.jboss.ws.cxf/jbossws-cxf-server
public static void callRequestHandler(HttpServletRequest req, HttpServletResponse res, ServletContext ctx, Bus bus,
Endpoint endpoint) throws ServletException
{
try
{
BusFactory.setThreadDefaultBus(bus);
//set the current endpoint into the threadlocal association that is later
//used by the EndpointAssociationInterceptor for linking the message exchange
//related to this invocation to the proper endpoint serving it (the bus, and
//hence the interceptor, can span multiple invocation related to multiple
//endpoints)
EndpointAssociation.setEndpoint(endpoint);
RequestHandler requestHandler = (RequestHandler) endpoint.getRequestHandler();
requestHandler.handleHttpRequest(endpoint, req, res, ctx);
}
catch (IOException ioe)
{
throw new ServletException(ioe);
}
finally
{
if (endpoint.getSecurityDomainContext() != null) {
endpoint.getSecurityDomainContext().cleanupSubjectContext();
}
EndpointAssociation.removeEndpoint();
BusFactory.setThreadDefaultBus(null);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!