Examples of readRequest()


Examples of org.glassfish.jersey.oauth1.signature.OAuth1Parameters.readRequest()

    @Produces("application/x-www-form-urlencoded")
    @TokenResource
    public Response postReqTokenRequest() {
        OAuthServerRequest request = new OAuthServerRequest(requestContext);
        OAuth1Parameters params = new OAuth1Parameters();
        params.readRequest(request);

        String tok = params.getToken();
        if ((tok != null) && (!tok.contentEquals(""))) {
            throw new OAuth1Exception(Response.Status.BAD_REQUEST, null);
        }

Examples of org.hpi.dialogue.protocol.service.HPIServerProtocol.readRequest()

  @Override
  public void run() {
    HPIServerProtocol serverProtocol = null;
    try {
      serverProtocol = new HPIServerProtocol(this.socket);
      Request clientRequest = serverProtocol.readRequest();
      Response response = null;

      // deciding the correct request
      if (clientRequest instanceof LoginRequest) { // login request
        response = this.doLogin((LoginRequest) clientRequest);

Examples of org.jboss.security.xacml.interfaces.RequestContext.readRequest()

      {
         //process the xacml request
         RequestContext requestContext = RequestResponseContextFactory.createRequestCtx();
         try
         {
            requestContext.readRequest(childElement);
         }
         catch (IOException e)
         {
            throw new RuntimeException(e);
         }

Examples of org.jboss.security.xacml.interfaces.RequestContext.readRequest()

     * @return
     * @throws Exception
     */
    private int getDecisionForStr(PolicyDecisionPoint pdp, String requestStr) throws Exception {
        final RequestContext request = RequestResponseContextFactory.createRequestCtx();
        request.readRequest(IOUtils.toInputStream(requestStr));
        return getDecision(pdp, request);
    }

    /**
     * Get the decision from the PDP.

Examples of org.jboss.security.xacml.interfaces.RequestContext.readRequest()

        final InputStream requestStream = JBossPDPInteroperabilityTestCase.class
                .getResourceAsStream(XACMLTestUtils.TESTOBJECTS_REQUESTS + "/" + requestFileLoc);
        if (requestStream == null) {
            LOGGER.warn("INPUT IS NULL");
        }
        request.readRequest(requestStream);
        return getDecision(pdp, request);
    }

    /**
     * Gets the decision from the PDP.

Examples of org.jboss.security.xacml.interfaces.RequestContext.readRequest()

         String requestFileLoc) throws Exception
   {
      ClassLoader tcl = Thread.currentThread().getContextClassLoader();
      InputStream is = tcl.getResourceAsStream(requestFileLoc);
      RequestContext request = RequestResponseContextFactory.createRequestCtx();
      request.readRequest(is);
      if (debug)
         request.marshall(System.out);
      return getResponse(pdp,request);
   }
  
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.