Package com.esri.gpt.server.assertion.handler

Examples of com.esri.gpt.server.assertion.handler.AsnRequestHandler


    AsnContext context = new AsnContext();
    context.setAssertionFactory(this);
    context.setRequestContext(requestContext);
   
    // make and return the request handler
    AsnRequestHandler handler = new AsnRequestHandler();
    handler.setAssertionContext(context);
    return handler;
  }
View Full Code Here


           
    // initialize
    String mimeType = "text/plain";
    String sResponse = "";
    AsnFactory asnFactory = null;
    AsnRequestHandler asnHandler = null;
    AsnResponse asnResponse = null;
   
    // execute the assertion operation
    try {
      asnFactory = AsnFactory.newFactory(context);
      asnHandler = asnFactory.makeRequestHandler(request,context);
      asnResponse = asnHandler.getAssertionContext().getOperationResponse();
      asnHandler.handleRequest(request,response);
      sResponse = Val.chkStr(asnResponse.getResponseString());
      mimeType = asnResponse.getMimeType();
    } catch (NotAuthorizedException e) {
      throw e;
    } catch (Exception e) {
      if (asnResponse != null) {
        asnResponse.exceptionToResponse(asnHandler.getAssertionContext(),e);
        sResponse = Val.chkStr(asnResponse.getResponseString());
      } else {
        throw e;
      }
    }
View Full Code Here

TOP

Related Classes of com.esri.gpt.server.assertion.handler.AsnRequestHandler

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.