Search in sources :

Example 1 with JaxWsImplementorSpecifics

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);
}
Also used : JaxWsImplementorSpecifics(org.eclipse.scout.rt.server.jaxws.implementor.JaxWsImplementorSpecifics)

Example 2 with JaxWsImplementorSpecifics

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));
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) HttpServletResponse(javax.servlet.http.HttpServletResponse) RunContext(org.eclipse.scout.rt.platform.context.RunContext) MessageContext(javax.xml.ws.handler.MessageContext) Subject(javax.security.auth.Subject) JaxWsImplementorSpecifics(org.eclipse.scout.rt.server.jaxws.implementor.JaxWsImplementorSpecifics)

Aggregations

JaxWsImplementorSpecifics (org.eclipse.scout.rt.server.jaxws.implementor.JaxWsImplementorSpecifics)2 Subject (javax.security.auth.Subject)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 MessageContext (javax.xml.ws.handler.MessageContext)1 RunContext (org.eclipse.scout.rt.platform.context.RunContext)1