use of org.eclipse.scout.rt.server.jaxws.implementor.JaxWsImplementorSpecifics in project scout.rt by eclipse.
the class PortPool method resetElement.
@Override
protected boolean resetElement(PORT port) {
final JaxWsImplementorSpecifics implementorSpecifics = BEANS.get(JaxWsImplementorSpecifics.class);
implementorSpecifics.resetRequestContext(port);
return implementorSpecifics.isValid(port);
}
use of org.eclipse.scout.rt.server.jaxws.implementor.JaxWsImplementorSpecifics in project scout.rt by eclipse.
the class JaxWsRunContextLookup method lookup.
/**
* Looks up the {@link RunContext} from the given {@link WebServiceContext}.
*
* @return {@link RunContext}, is never <code>null</code>.
*/
public RunContext lookup(final WebServiceContext webServiceContext) {
final RunContext runContext = lookupRunContext(webServiceContext);
final Subject subject = lookupSubject(webServiceContext, runContext);
final String cid = lookupCorrelationId(webServiceContext, runContext);
final MessageContext messageContext = webServiceContext.getMessageContext();
final JaxWsImplementorSpecifics implementor = BEANS.get(JaxWsImplementorSpecifics.class);
HttpServletRequest request = implementor.getServletRequest(messageContext);
HttpServletResponse response = implementor.getServletResponse(messageContext);
return runContext.withSubject(subject).withCorrelationId(cid).withThreadLocal(IWebServiceContext.CURRENT, webServiceContext).withThreadLocal(IHttpServletRoundtrip.CURRENT_HTTP_SERVLET_REQUEST, request).withThreadLocal(IHttpServletRoundtrip.CURRENT_HTTP_SERVLET_RESPONSE, response).withDiagnostics(BEANS.get(ServletDiagnosticsProviderFactory.class).getProviders(request, response));
}
Aggregations