Examples of WODynamicURL


Examples of com.webobjects.appserver.WODynamicURL

      if (context._requestSessionID() != null) {
        application.restoreSessionWithID(sessionId, context);
      }

      try {
      final WODynamicURL url = request._uriDecomposed();
        final String requestPath = url.requestHandlerPath();
        final Matcher idMatcher = Pattern.compile("^id/(\\d+)/").matcher(requestPath);

        final Integer requestedAttachmentID;
        String requestedWebPath;

        final boolean requestedPathContainsAnAttachmentID = idMatcher.find();
    if (requestedPathContainsAnAttachmentID) {
          requestedAttachmentID = Integer.valueOf(idMatcher.group(1));
          requestedWebPath = idMatcher.replaceFirst("/");
        } else {
          // MS: This is kind of goofy because we lookup by path, your web path needs to
          // have a leading slash on it.
          requestedWebPath = "/" + requestPath;
          requestedAttachmentID = null;
        }


        try {
          InputStream attachmentInputStream;
          String mimeType;
          String fileName;
          long length;
          String queryString = url.queryString();
          boolean proxyAsAttachment = (queryString != null && queryString.contains("attachment=true"));

          EOEditingContext editingContext = ERXEC.newEditingContext();
          editingContext.lock();
View Full Code Here

Examples of com.webobjects.appserver.WODynamicURL

        }
      }
     
      if (_useRequestHandlerPath) {
          try {
            WODynamicURL dynamicURL = new WODynamicURL(uri);
            String requestHandlerPath = dynamicURL.requestHandlerPath();
            if (requestHandlerPath == null || requestHandlerPath.length() == 0) {
              sb.append(uri);
            } else {
              sb.append('/');
              sb.append(requestHandlerPath);
View Full Code Here

Examples of com.webobjects.appserver.WODynamicURL

    StringBuilder uri = new StringBuilder();
    Conversation conversation = _instantMessengerConnectionNamed(screenName).conversationForBuddyNamed(buddyName, _conversationTimeout);
    String requestUrl = conversation.requestUrl();
    if (requestUrl == null) {
      String cgiAdaptorURL = _application.cgiAdaptorURL();
      WODynamicURL imConversationUrl = new WODynamicURL();

      int j = cgiAdaptorURL.indexOf("//");
      int i = 0;
      if (j > 0 && cgiAdaptorURL.length() - j > 2) {
        i = cgiAdaptorURL.indexOf('/', j + 2);
      }
      if (i > 0) {
        imConversationUrl.setPrefix(cgiAdaptorURL.substring(i));
      }
      else {
        imConversationUrl.setPrefix(_application.applicationBaseURL());
      }
      imConversationUrl.setRequestHandlerKey(_application.directActionRequestHandlerKey());
      imConversationUrl.setApplicationName(_application.name());
      imConversationUrl.setApplicationNumber(_application.number());
      imConversationUrl.setRequestHandlerPath(_conversationActionName);
      uri.append(imConversationUrl.toString());
    }
    else {
      uri.append(requestUrl);
    }
    uri.append('?');
View Full Code Here

Examples of com.webobjects.appserver.WODynamicURL

            resp.setStatus(HttpURLConnection.HTTP_OK);
            resp.setHeader("text/xml;charset=utf-8", "Content-Type");

            ByteArrayOutputStream baos = new ByteArrayOutputStream();

            WODynamicURL du = woRequest._uriDecomposed();
            String baseUri = String.format("%s/%s.woa/%s/%s",
                    du.prefix(),
                    du.applicationName(),
                    du.requestHandlerKey(),
                    du.requestHandlerPath());

            boolean isSecure;
           
            if(woRequest instanceof ERXRequest)
            {
View Full Code Here

Examples of com.webobjects.appserver.WODynamicURL

          session.awake();
        }
        try {
          JSONComponentCallback componentCallback = null;
         
          WODynamicURL url = request._uriDecomposed();
          String requestHandlerPath = url.requestHandlerPath();
          JSONRPCBridge jsonBridge;
          if (requestHandlerPath != null && requestHandlerPath.length() > 0) {
            String componentNameAndInstance = requestHandlerPath;
            String componentInstance;
            String componentName;
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.