Skip to content

Instantly share code, notes, and snippets.

Alejandro Scandroli ascandroli

Block or report user

Report or block ascandroli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ascandroli on github.
  • I am ascandroli ( on keybase.
  • I have a public key ASCqHd4mo5QFW5LqAu5SFc3tk72bYW5Ade3shPA-RJmVfwo

To claim this, I am signing this object:

ascandroli /
Created Oct 11, 2012
copy of BaseURLSourceImpl 5.3 version adapted to make it work with 5.2
public class AmnerisSymbols {
* The hostname that application should use when constructing an absolute URL. The default is "", i.e. an empty
* string,
* in which case system will use request.getServerName(). Not the same as environment variable HOSTNAME, but you can
* also
* contribute "$HOSTNAME" as the value to make it the same as the environment variable HOSTNAME.
* @since 5.3 copy of SymbolConstants.HOSTNAME
import org.apache.tapestry5.EventContext;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.TapestryConstants;
import org.apache.tapestry5.internal.EmptyEventContext;
import org.apache.tapestry5.ioc.MethodAdviceReceiver;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.annotations.Advise;
import org.apache.tapestry5.ioc.annotations.Contribute;
ascandroli /
Created May 29, 2012
tapestry-security based configuration that block access to assets (inspired by T5AssetProtectionDispatcher)
import org.apache.shiro.util.PatternMatcher;
import org.apache.tapestry5.SymbolConstants;
import org.apache.tapestry5.ioc.Configuration;
import org.apache.tapestry5.ioc.annotations.Symbol;
import java.util.regex.Pattern;
ascandroli / gist:2274287
Created Apr 1, 2012
@CommitAfter not working in RESTEasy
View gist:2274287
Index: pom.xml
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
<+><project xmlns=\"\" xmlns:xsi=\"\"\n\t\t xsi:schemaLocation=\"\">\n\n\t<modelVersion>4.0.0</modelVersion>\n\t<groupId>org.amneris</groupId>\n\t<artifactId>petstore</artifactId>\n\t<packaging>war</packaging>\n\t<version>0.1.0-SNAPSHOT</version>\n\t<name>petstore - My Tynamo project</name>\n\t<url></url>\n\n\t<properties>\n\t\t<tynamo-version>0.3.0-SNAPSHOT</tynamo-version>\n\t\t<>org.amneris.petstore</>\n\t\t<>UTF-8</>\n\t</properties>\n\n\t<scm>\n\t\t<connection>scm:git:git://</connection> <!-- Read-Only access -->\n\t\t<url>
You can’t perform that action at this time.