public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public Object getEnterpriseBean(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).getJaccEjb(); } return null; }
public Object getSOAPMessage(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { //TODO:V3 does this violate JACC spec?, we may have to convert to SOAPMessage on demand //return eInv.getSOAPMessage(); return eInv.getMessage(); } } return null; }
public Object getEJbArguments(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { return null; } else { return (eInv.getMethodParams() != null) ? eInv.getMethodParams() : new Object[0]; } } return null; }
public void setSOAPMessage(Object message, ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { eInv.setMessage(message); } } }
public boolean handleRequest(MessageContext context) { EJBInvocation inv = null; try { WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance(); InvocationManager invManager = wscImpl.getInvocationManager(); inv = (EJBInvocation) invManager.getCurrentInvocation(); Method method = wsUtil.getInvMethod( (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context); inv.setWebServiceMethod(method); if ( !inv.authorizeWebService(method) ) { throw new Exception( format( rb.getString ("client.unauthorized") , method.toString())); } } catch(Exception e) { wsUtil.throwSOAPFaultException(e.getMessage(), context); } return true; }
public boolean handleRequest(MessageContext context) { EJBInvocation inv = null; try { WebServiceContractImpl wscImpl = WebServiceContractImpl.getInstance(); InvocationManager invManager = wscImpl.getInvocationManager(); inv = (EJBInvocation) invManager.getCurrentInvocation(); Method webServiceMethodInPreHandler = inv.getWebServiceMethod(); if( webServiceMethodInPreHandler != null ) { // Now that application handlers have run, do another method // lookup and compare the results with the original one. This // ensures that the application handlers have not changed // the message context in any way that would impact which // method is invoked. Method postHandlerMethod = wsUtil.getInvMethod( (com.sun.xml.rpc.spi.runtime.Tie)inv.getWebServiceTie(), context); if( !webServiceMethodInPreHandler.equals(postHandlerMethod) ) { throw new UnmarshalException("Original method " + webServiceMethodInPreHandler + " does not match post-handler method "); } } } catch(Exception e) { wsUtil.throwSOAPFaultException(e.getMessage(), context); } return true; } }
ConnectorRuntime.getRuntime().getInvocationManager().getCurrentInvocation(); EJBInvocation ejbInvocation = (EJBInvocation) componentInvocation; EJBContext ejbcontext = ejbInvocation.getEJBContext(); Set s = groupNameSecurityMap.keySet(); Iterator i = s.iterator();
public Object getEJbArguments(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { return null; } else { return (eInv.getMethodParams() != null) ? eInv.getMethodParams() : new Object[0]; } } return null; }
public void setSOAPMessage(Object message, ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { eInv.setMessage(message); } } }
public Object getSOAPMessage(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { EJBInvocation eInv = (EJBInvocation) inv; if (eInv.isAWebService()) { //TODO:V3 does this violate JACC spec?, we may have to convert to SOAPMessage on demand //return eInv.getSOAPMessage(); return eInv.getMessage(); } } return null; }
public boolean authorize(ComponentInvocation inv, Method m) throws Exception { Exception ie = null; if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).authorizeWebService(m); } return true; }
public Object getEnterpriseBean(ComponentInvocation inv) { if (inv instanceof EJBInvocation) { return ((EJBInvocation)inv).getJaccEjb(); } return null; }