Examples of ParameterStyle


Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of javax.jws.soap.SOAPBinding.ParameterStyle

         if (attrUse == SOAPBinding.Use.ENCODED)
            throw new WSException("SOAP encoding is not supported for JSR-181 deployments");

         epMetaData.setEncodingStyle(Use.LITERAL);

         ParameterStyle paramStyle = anSoapBinding.parameterStyle();
         epMetaData.setParameterStyle(paramStyle);
      }
   }
View Full Code Here

Examples of net.oauth.ParameterStyle

        Object accepted = accessor.consumer.getProperty(OAuthConsumer.ACCEPT_ENCODING);
        if (accepted != null) {
            request.getHeaders().add(new OAuth.Parameter(HttpMessage.ACCEPT_ENCODING, accepted.toString()));
        }
        Object ps = accessor.consumer.getProperty(PARAMETER_STYLE);
        ParameterStyle style = (ps == null) ? ParameterStyle.BODY
                : Enum.valueOf(ParameterStyle.class, ps.toString());
        return invoke(request, style);
    }
View Full Code Here

Examples of net.oauth.client.OAuthClient.ParameterStyle

    }
  }

  private ParameterStyle getStyle(OAuthMessage request) {
    Object ps = accessor.consumer.getProperty(OAuthClient.PARAMETER_STYLE);
    ParameterStyle style = (ps != null) ? Enum.valueOf(ParameterStyle.class, ps.toString())
        : (OAuthMessage.POST.equals(request.method) ? ParameterStyle.BODY
            : ParameterStyle.QUERY_STRING);
    return style;
  }
View Full Code Here

Examples of org.apache.amber.oauth2.common.message.types.ParameterStyle

        } else {
            String[] parameters = parameterStylesString.split(TOKEN_DELIMITER);
            if (parameters != null && parameters.length > 0) {
                parameterStyles = new ParameterStyle[parameters.length];
                for (int i = 0; i < parameters.length; i++) {
                    ParameterStyle tempParameterStyle = ParameterStyle.valueOf(parameters[i]);
                    if (tempParameterStyle != null) {
                        parameterStyles[i] = tempParameterStyle;
                    } else {
                        throw new ServletException("Incorrect ParameterStyle: " + parameters[i]);
                    }
View Full Code Here

Examples of org.apache.jetspeed.om.registry.ParameterStyle

                        JetspeedSecurity.PERMISSION_CUSTOMIZE);

        // If security does not allow access to specific parameter, allow to provide a fallback parameter
        if (canAccess == false)
                {
                    ParameterStyle ps = param.getParameterStyle();
                    String parmNameNoAccess = null;
                    if (ps == null)
                    {
                        parmNameNoAccess =
                            portlet.getPortletConfig().getInitParameter(
                                parmName + ".style.no-access");
                    }
                    else
                    {
                        StyleOption noaccess = ps.getOption("no-access");
                        if (noaccess != null)
                        {
                            parmNameNoAccess = noaccess.getValue();
                        }
                    }
                    if (parmNameNoAccess != null)
                    {
                        if (logger.isDebugEnabled())
                        {
                            logger.debug(
                                "JetspeedTool: access to parm ["
                                    + parmName
                                    + "] disallowed, redirecting to parm ["
                                    + parmNameNoAccess
                                    + "]");
                        }
                        parmName = parmNameNoAccess;
            param = entry.getParameter(parmName);
            if (param == null)
            {
              throw new Exception(
                "No access parameter [" + parmName + "] was not found");
            }
                    }
                }

                // Set parameter options       
                Map portletParms = null;
                String parmStyle = null;
                ParameterStyle ps = param.getParameterStyle();
                if (ps == null)
                {
                    portletParms =
                        portlet.getPortletConfig().getInitParameters();
                    parmStyle =
                        portlet.getPortletConfig().getInitParameter(
                            parmName + ".style");
                }
                else
                {
                    parmStyle = ps.getName();
                    portletParms = new Hashtable();
                    for (Iterator it = ps.getOptions().iterator();
                        it.hasNext();
                        )
                    {
                        StyleOption so = (StyleOption) it.next();
                        portletParms.put(
                            parmName + ".style." + so.getName(),
                            so.getValue());
                    }
                    String template = ps.getTemplate();
                    if (StringUtils.isNotEmpty(template))
                    {
                        portletParms.put(
                            parmName.concat(".style.template"),
                            template);
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.