Examples of Tie


Examples of com.sun.xml.rpc.spi.runtime.Tie

    }

    private Implementor createImplementor(RuntimeEndpointInfo targetEndpoint)
        throws Exception {

        Tie tie = (Tie) targetEndpoint.getTieClass().newInstance();

        Class seiClass  = targetEndpoint.getRemoteInterface();
        Class implClass = targetEndpoint.getImplementationClass();

        Remote servant  = null;
        if( seiClass.isAssignableFrom(implClass) ) {
            // if servlet endpoint impl is a subtype of SEI, use an
            // instance as the servant.
            servant = (Remote) implClass.newInstance();
        } else {
            // Create a dynamic proxy that implements SEI (and optionally
            // ServiceLifecycle) and delegates to an instance of the
            // endpoint impl.
            Object implInstance = implClass.newInstance();

            InvocationHandler handler =
                new ServletImplInvocationHandler(implInstance);
            boolean implementsLifecycle =
                ServiceLifecycle.class.isAssignableFrom(implClass);
            Class[] proxyInterfaces = implementsLifecycle ?
                new Class[] { seiClass, ServiceLifecycle.class } :
                new Class[] { seiClass };

            servant = (Remote) Proxy.newProxyInstance
                (implClass.getClassLoader(), proxyInterfaces, handler);
        }
        tie.setTarget(servant);
       
        Implementor implementor = rpcFactory_.createImplementor(servletContext_, tie);
        implementor.init();

        return implementor;
View Full Code Here

Examples of com.sun.xml.rpc.spi.runtime.Tie

      _logger.fine("ws.processRequest");
  }

        final SOAPMessageContext finalMC = messageContext;
  Implementor implementor = (Implementor) messageContext.getProperty( IMPLEMENTOR );
        final Tie tie = implementor.getTie();
  StreamingHandler handler = (StreamingHandler) implementor.getTie();
  SOAPMessage request = finalMC.getMessage();
  final ServerAuthContext sAC = config_.getAuthContext(handler,request);

        boolean status = true;
  try {
      if (sAC != null) {
    status = false;
                // proceed to process message security
                status = WebServiceSecurity.validateRequest(finalMC,sAC);

    if (status) {
        messageContext.setProperty(SERVER_AUTH_CONTEXT, sAC);
    }
            }
  } catch (AuthException ae) {
      _logger.log(Level.SEVERE, "ws.error_validate_request", ae);
      throw new RuntimeException(ae);
  } finally {
      WebServiceSecurity.auditInvocation(messageContext, endpoint_, status);
        }

        if (status) {

      // only do doAsPriv if SecurityManager in effect.

      if (System.getSecurityManager() != null) {

    // on this branch, the endpoint invocation and the
    // processing of the response will be initiated from
    // within the system handler delegate. delegate returns
    // false so that dispatcher will not invoke the endpoint.

    status = false;

    try {

        Subject.doAsPrivileged
      (SecurityContext.getCurrent().getSubject(),
       new PrivilegedExceptionAction() {
          public Object run() throws Exception {
        tie.handle(finalMC);
        processResponse(finalMC);
        return null;
          }
                     }, null);
View Full Code Here

Examples of com.sun.xml.rpc.spi.runtime.Tie

      _logger.fine("ws.processRequest");
  }

        final SOAPMessageContext finalMC = messageContext;
  Implementor implementor = (Implementor) messageContext.getProperty( IMPLEMENTOR );
        final Tie tie = implementor.getTie();
  StreamingHandler handler = (StreamingHandler) implementor.getTie();
  SOAPMessage request = finalMC.getMessage();
  final ServerAuthContext sAC = config_.getAuthContext(handler,request);

        boolean status = true;
  try {
      if (sAC != null) {
    status = false;
                // proceed to process message security
                status = WebServiceSecurity.validateRequest(finalMC,sAC);

    if (status) {
        messageContext.setProperty(SERVER_AUTH_CONTEXT, sAC);
    }
            }
  } catch (AuthException ae) {
      _logger.log(Level.SEVERE, LogUtils.ERROR_REQUEST_VALIDATION, ae);
      throw new RuntimeException(ae);
  } finally {
      WebServiceSecurity.auditInvocation(messageContext, endpoint_, status);
        }

        if (status) {

      // only do doAsPriv if SecurityManager in effect.

      if (System.getSecurityManager() != null) {

    // on this branch, the endpoint invocation and the
    // processing of the response will be initiated from
    // within the system handler delegate. delegate returns
    // false so that dispatcher will not invoke the endpoint.

    status = false;

    try {

        Subject.doAsPrivileged
      (SecurityContext.getCurrent().getSubject(),
       new PrivilegedExceptionAction() {
          public Object run() throws Exception {
        tie.handle(finalMC);
        processResponse(finalMC);
        return null;
          }
                     }, null);
View Full Code Here

Examples of com.sun.xml.ws.server.Tie

            NormalizedMessage in = me.getMessage("in");
            if (in == null) {
                throw new NoInMessageAvailableException(me);
            }
            NormalizedMessage out = me.createMessage();
            Tie tie = new Tie();
            WSConnection con = new WSConnectionDelegate(in, out);
            MessageContext msgCtxt = new MessageContextImpl();
            WebServiceContext wsContext = rtEndpointInfo.getWebServiceContext();
            wsContext.setMessageContext(msgCtxt);
            tie.handle(con, rtEndpointInfo);
            if (isInAndOut(me)) {
                me.setMessage(out, "out");
            } else {
                me.setStatus(ExchangeStatus.DONE);
            }
View Full Code Here

Examples of com.sun.xml.ws.server.Tie

        if (in == null) {
            throw new NoInMessageAvailableException(exchange);
        }
        NormalizedMessage out = exchange.createMessage();
        try {
      Tie tie = new Tie();
      WSConnection con = new WSConnectionDelegate(in, out);
            MessageContext msgCtxt = new MessageContextImpl();
            WebServiceContext wsContext = rtEndpointInfo.getWebServiceContext();
            wsContext.setMessageContext(msgCtxt);
      tie.handle(con, rtEndpointInfo);
            if (isInAndOut(exchange)) {
                answer(exchange, out);
            } else {
                done(exchange);
            }
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.Tie

   * @param endPoint
   */
  public static void renderTie(Graphics graphics, TieForm tieForm,
      Point startPoint, Point endPoint) {
    graphics.setForegroundColor(calculateVariantColor(tieForm));
    Tie tieNode = (Tie) tieForm.getMeiNode();
    boolean isAbove = true;
    if (tieNode.isSetCurvedir()) {
      isAbove = tieNode.getCurvedir().equalsIgnoreCase(
          GraphicalConstants.PROPCOMBO_STRING_ARRAY_CURVEDIR[0]);
    }
    if (startPoint != null
        && endPoint != null
        && (isVisibleArea(MusicPlugin.getDefault().getActiveEditor()
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.Tie

      processSlur(graphics, (SlurForm) slurForm);
    }
  }

  private void processTie(Graphics graphics, TieForm tieForm) {
    Tie tieNode = (Tie) tieForm.getMeiNode();
    String startId = tieNode.getStartid();
    String endId = tieNode.getEndid();
    if (startId != null
        && endId != null
        && this.figurePassingObject.getNoteHeadLocationMap()
            .containsKey(startId)
        && this.figurePassingObject.getNoteHeadLocationMap()
View Full Code Here

Examples of info.textgrid.lab.noteeditor.mei2013.Tie

            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof TieForm) {
      TieForm contentForm = (TieForm) childForm;
      Tie contentNode = (Tie) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof SlurForm) {
      SlurForm contentForm = (SlurForm) childForm;
      Slur contentNode = (Slur) contentForm.getMeiNode();
      return contentNode;
View Full Code Here

Examples of javax.rmi.CORBA.Tie

            state.checkShutDown();
        } catch (BAD_INV_ORDER ex) {
            throw new RemoteException("RMIState is deactivated", ex);
        }

        Tie tie = javax.rmi.CORBA.Util.getTie(obj);

        if (tie != null)
            throw new java.rmi.RemoteException("object already exported");

        RMIServant servant = new RMIServant(state);
View Full Code Here

Examples of javax.rmi.CORBA.Tie

        java.util.Map tie_map = tie_map();

        if (tie_map == null)
            return;

        Tie tie = (Tie) tie_map.remove(obj);

        if (tie == null) {
            logger.fine("unexporting unknown instance of "
                    + obj.getClass().getName() + " from "
                    + RMIState.current().getName());
            return;
        } else {
            logger.finer("unexporting instance of " + obj.getClass().getName()
                    + " from " + RMIState.current().getName());
        }

        tie.deactivate();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.