This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.arba.sample.contentnavigator.desktop.requestFilter; | |
import com.ibm.ecm.extension.PluginResponseFilter; | |
import com.ibm.ecm.extension.PluginServiceCallbacks; | |
import com.ibm.json.java.JSONObject; | |
import javax.servlet.http.HttpServletRequest; | |
public class DesktopRequestFilter extends PluginResponseFilter { | |
/** | |
* Extend the getDesktop service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla 5.0'); | |
$content = curl_exec($ch); | |
curl_close($ch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package nl.arba.samples; | |
import com.filenet.api.core.Domain; | |
import com.filenet.api.core.Connection; | |
import com.filenet.api.core.Factory; | |
import com.filenet.api.util.UserContext; | |
import javax.security.auth.Subject; | |
public class FileNetSample { | |
private String strFileNetUrl; |