Package org.jabsorb.localarg

Examples of org.jabsorb.localarg.LocalArgResolveException


import com.webobjects.appserver.WOContext;

public class WOContextArgResolver implements LocalArgResolver {
  public Object resolveArg(Object obj) throws LocalArgResolveException {
    if (!(obj instanceof WOContext)) {
      throw new LocalArgResolveException("Invalid context.");
    }
    return obj;
  }
View Full Code Here


public class JSONRPCBridgeWOSessionArgResolver implements LocalArgResolver {

  public Object resolveArg(Object obj) throws LocalArgResolveException {
    if (!(obj instanceof WOContext)) {
      throw new LocalArgResolveException("Invalid context.");
    }
    WOSession session = ((WOContext) obj).session();
    return session.valueForKey("JSONRPCBridge");
  }
View Full Code Here

import com.webobjects.appserver.WOContext;

public class WOSessionArgResolver implements LocalArgResolver {
  public Object resolveArg(Object obj) throws LocalArgResolveException {
    if (!(obj instanceof WOContext)) {
      throw new LocalArgResolveException("Invalid context.");
    }
    return ((WOContext) obj).session();
  }
View Full Code Here

import com.webobjects.appserver.WOResponse;

public class WOResponseArgResolver implements LocalArgResolver {
  public Object resolveArg(Object obj) throws LocalArgResolveException {
    if (!(obj instanceof WOResponse)) {
      throw new LocalArgResolveException("Invalid context.");
    }
    return obj;
  }
View Full Code Here

import com.webobjects.appserver.WORequest;

public class WORequestArgResolver implements LocalArgResolver {
  public Object resolveArg(Object obj) throws LocalArgResolveException {
    if (!(obj instanceof WORequest)) {
      throw new LocalArgResolveException("Invalid context.");
    }
    return obj;
  }
View Full Code Here

TOP

Related Classes of org.jabsorb.localarg.LocalArgResolveException

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.