Package com.caucho.services.server

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


  public void invoke(BurlapInput in, BurlapOutput out)
    throws Throwable
  {
    in.readCall();

    ServiceContext context = ServiceContext.getContext();
   
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }

    String methodName = in.readMethod();
    Method method = getMethod(methodName);
View Full Code Here

   * @param out the Hessian output stream
   */
  public void invoke(AbstractHessianInput in, AbstractHessianOutput out)
    throws Throwable
  {
    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 = getMethod(methodName);

View Full Code Here

  public void invoke(Object service, BurlapInput in, BurlapOutput out)
    throws Exception
  {
    in.readCall();

    ServiceContext context = ServiceContext.getContext();
   
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }

    String methodName = in.readMethod();
    Method method = getMethod(methodName);
View Full Code Here

  public void invoke(Object service,
                     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();

    // Hessian 1.0 backward compatibility
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }

    String methodName = in.readMethod();
    int argLength = in.readMethodArgLength();
View Full Code Here

  }

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

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

    // Hessian 1.0 backward compatibility
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }
    ServiceMetaData metaData = MetadataProcessor.getServiceMetaData(serviceName);
    if (metaData == null) {
      log.error("service " + serviceName+ " can't find.");
      out.writeFault("NoSuchService","service " + serviceName+ " can't find.", null);
View Full Code Here

  public void invoke(Object service, BurlapInput in, BurlapOutput out)
    throws Exception
  {
    in.readCall();

    ServiceContext context = ServiceContext.getContext();
   
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }

    String methodName = in.readMethod();
    Method method = getMethod(methodName);
View Full Code Here

  public void invoke(Object service,
                     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();

    // Hessian 1.0 backward compatibility
    String header;
    while ((header = in.readHeader()) != null) {
      Object value = in.readObject();

      context.addHeader(header, value);
    }

    String methodName = in.readMethod();
    int argLength = in.readMethodArgLength();
View Full Code Here

TOP

Related Classes of com.caucho.services.server.ServiceContext

Copyright © 2018 www.massapicom. 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.