Examples of ServiceContext


Examples of com.caucho.services.server.ServiceContext

                return name;
        }
    }

    public void invoke(AbstractHessianInput in, AbstractHessianOutput out) throws Exception {
        ServiceContext context = ServiceContext.getContext();

        // backward compatibility for some frameworks that don't read
        // the call type first
        in.skipOptionalCall();

        String header;
        while ((header = in.readHeader()) != null) {
            Object value = in.readObject();
            context.addHeader(header, value);
        }

        String methodName = in.readMethod();
        Method method = null;
        JavaOperation operation = _operationMap.get(methodName);
View Full Code Here

Examples of com.facebook.swift.generator.template.ServiceContext

    @Override
    public void visit(final Visitable visitable) throws IOException
    {
        final Service service = Service.class.cast(visitable);
        final ServiceContext serviceContext = contextGenerator.serviceFromThrift(service);

        for (ThriftMethod method: service.getMethods()) {
            final MethodContext methodContext = contextGenerator.methodFromThrift(method);
            serviceContext.addMethod(methodContext);

            for (final ThriftField field : method.getArguments()) {
                methodContext.addParameter(contextGenerator.fieldFromThrift(field));
            }
View Full Code Here

Examples of com.fs.pxe.sfwk.spi.ServiceContext

            }
            if (operation == null) {
                throw new NullPointerException("No operation has been set for this event");
            }
            for (Iterator it = this.services.values().iterator(); it.hasNext();) {
                ServiceContext service = (ServiceContext) it.next();
                if (svcName.equals(service.getServiceName())) {
                    ServicePort svcPort = service.getImport(port);
                    if (svcPort != null) {
                        mePxe = service.createMessageExchange(svcPort, null, operation.getLocalPart());
                        com.fs.pxe.sfwk.spi.Message im = mePxe.createInputMessage();
                        im.setMessage(((Document) r.getNode()).getDocumentElement());
                        mePxe.input(im);
                        break;
                    }
View Full Code Here

Examples of com.liferay.portal.service.ServiceContext

    throws Exception {

    String className = (String) message.get("className");
    String keywords = (String) message.get("keywords");

    ServiceContext serviceContext = (ServiceContext) message.get("serviceContext");

    serviceContext.setUserId(serviceContext.getUserId());

    NotFoundLocalServiceUtil.addNotFound(className, keywords, serviceContext);
  }
View Full Code Here

Examples of com.sun.corba.se.spi.servicecontext.ServiceContext

    public ServiceContext makeServiceContext(InputStream is, GIOPVersion gv)
    {
        Object[] args = new Object[2];
        args[0] = is ;
        args[1] = gv;
        ServiceContext sc = null ;

        try {
            sc = (ServiceContext)(scConstructor.newInstance( args )) ;
        } catch (IllegalArgumentException iae) {
            throwBadParam( "InputStream constructor argument error", iae ) ;
View Full Code Here

Examples of com.sun.star.corba.iop.ServiceContext

                                            new TaggedProfile[0])
                                          )
                              );

    LogicalThreadID logicalThreadID = new LogicalThreadID(new OneThreadID[]{new OneThreadID(0, threadId.getBytes())});
    ServiceContext serviceContexts[] = new ServiceContext[]{new ServiceContext(4, marshalLogicalThreadID(logicalThreadID))};


    // if the type of request is not provided, use methodDescription if available, otherwise fall back to synchron
    if(synchron[0] == null) {
      if(methodDescription == null)
View Full Code Here

Examples of jeeves.server.context.ServiceContext

    public static String getConfigValue(String key) {
        if (key == null) {
            return "";
        }

        final ServiceContext serviceContext = ServiceContext.get();
        if (serviceContext != null) {
            ServiceConfig config = serviceContext.getBean(ServiceConfig.class);
            if (config != null) {
                String value = config.getValue(key);
                if (value != null) {
                    return value;
                } else {
View Full Code Here

Examples of juzu.impl.plugin.ServiceContext

    //
    HashMap<String, ServiceDescriptor> pluginDescriptors = new HashMap<String, ServiceDescriptor>();
    for (final Map.Entry<ApplicationService, JSON> entry : configs.entrySet()) {
      ApplicationService plugin = entry.getKey();
      ServiceContext pluginContext = new ServiceContext() {
        public JSON getConfig() {
          return entry.getValue();
        }
        public ClassLoader getClassLoader() {
          return classLoader;
View Full Code Here

Examples of no.kommune.bergen.soa.svarut.ServiceContext

  @Test
  public void sequence() {
    System.setProperty( "CONSTRETTO_TAGS", "DEV" );
    ApplicationContext context = new ClassPathXmlApplicationContext( "applicationContext.xml" );
    ServiceContext serviceContext = (ServiceContext)context.getBean( "serviceContext" );
    ForsendelsesArkiv forsendelsesArkiv2 = serviceContext.getForsendelsesArkiv();
    String nextVal = forsendelsesArkiv2.getIdentifier();
    assertEquals( 36, nextVal.length() );
  }
View Full Code Here

Examples of org.apache.abdera.protocol.server.ServiceContext

  @Override
  protected void service(
    HttpServletRequest request,
    HttpServletResponse response)
      throws ServletException, IOException {
    ServiceContext context =
      serviceManager.newServiceContext(
        getProperties(getServletConfig()));
    RequestHandlerManager manager = context.getRequestHandlerManager();
    RequestHandler handler = manager.getRequestHandler();
    try {
      handler.process(context, request, response);
    } catch (Throwable t) {
      logger.error("Error servicing request", t);
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.