Package net.jini.jeri

Examples of net.jini.jeri.InboundRequest


   * is assumed that the caller will always abort the request (even on
   * normal return).
   */
  public void dispatch(InboundRequest req) {
      try {
    InboundRequest sreq =
        new Inbound(req, c,
        c.processRequestData(
              req.getRequestInputStream(),
              req.getResponseOutputStream()));
    sreq.checkPermissions();
    dispatcher.dispatch(sreq);
      } catch (IOException e) {
    if (logger.isLoggable(Levels.HANDLED)) {
        logThrow(logger, "dispatchRequest",
           "{0} throws", new Object[]{c}, e);
View Full Code Here


   * is assumed that the caller will always abort the request (even on
   * normal return).
   */
  public void dispatch(InboundRequest req) {
      try {
    InboundRequest sreq =
        new Inbound(req, c,
        c.processRequestData(
              req.getRequestInputStream(),
              req.getResponseOutputStream()));
    sreq.checkPermissions();
    dispatcher.dispatch(sreq);
      } catch (IOException e) {
    if (logger.isLoggable(Levels.HANDLED)) {
        logThrow(logger, "dispatchRequest",
           "{0} throws", new Object[]{c}, e);
View Full Code Here

  final Session session = new Session(this, sessionID, Session.SERVER);
  addSession(sessionID, session);
  try {
      userThreadPool.execute(new Runnable() {
    public void run() {
        final InboundRequest request = session.getInboundRequest();
        try {
      AccessController.doPrivileged(securityContext.wrap(
          new PrivilegedAction() {
        public Object run() {
            requestDispatcher.dispatch(request);
            return null;
        }
          }), securityContext.getAccessControlContext());
        } finally {
      request.abort();
        }
    }
      }, "mux request dispatch");
  } catch (OutOfMemoryError e) {  // assume out of threads
      try {
View Full Code Here

    /**
     *
     */
    InboundRequest getInboundRequest() {
  assert role == SERVER;
  return new InboundRequest() {
      public void checkPermissions() {
    ((MuxServer) mux).checkPermissions();
      }
      public InvocationConstraints
    checkConstraints(InvocationConstraints constraints)
View Full Code Here

    this.connection = connection;
      }

      public void dispatch(InboundRequest request) {
    try {
        InboundRequest wrappedRequest =
      new HttpsInboundRequest(
          request, connection,
          connection.processRequestData(
        request.getRequestInputStream(),
        request.getResponseOutputStream()));
        wrappedRequest.checkPermissions();
        requestDispatcher.dispatch(wrappedRequest);
    } catch (SecurityException e) {
        if (logger.isLoggable(Level.INFO)) {
      logThrow(
          logger, Level.INFO,
View Full Code Here

TOP

Related Classes of net.jini.jeri.InboundRequest

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.